RAL Classic color

RAL 5005 Signal blue #1E2460

RAL 5005 Signal blue is shown here as #1E2460, a widely published sRGB approximation of the printed swatch. It is a very dark soft blue in the blue family. In OKLCH it sits at lightness 0.295, chroma 0.105 and hue 273.7°. The nearest CSS named color is midnightblue (#191970), ΔE2000 5.3 away.

Relative luminance
0.0238
OKLCH L · C · h
0.295 · 0.105 · 273.7
Best text
White 14.22:1
Hue family
Blue

#1E2460 color codes

HEX
#1E2460
RGB
rgb(30, 36, 96)
HSL
hsl(235, 52%, 25%)
OKLCH
oklch(0.295 0.105 273.7)
OKLab
oklab(0.295 0.007 -0.105)
CIELAB (D65)
L* 17.38, a* 18.87, b* -36.58
XYZ (D65)
X 3.28, Y 2.38, Z 11.35
CMYK (naive)
cmyk(69%, 63%, 0%, 62%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #1E2460 accessible?

White text on it reaches 14.22:1, passing AAA. Black text fails at 1.47:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    1.47:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.47:1

  • White text on it

    14.22:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −103
  • As text on black

    1.47:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.47:1

  • As text on white

    14.22:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +100

Nearest versions that pass 4.5:1

  • For text on white

    #1E2460 14.22:1

    It already reaches 14.22:1 on white, so no change is needed.

  • For text on black

    #6370B4 4.50:1

    Lightening its OKLCH lightness from 0.30 to 0.57 reaches 4.50:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #1E2460 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #1E2460

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #1E2460 sits at step 900.

  1. 50#F2F5FF
    White
    1.08
    Black
    19.28
  2. 100#E5EAFF
    White
    1.19
    Black
    17.54
  3. 200#CBD6FF
    White
    1.43
    Black
    14.60
  4. 300#A9B9FE
    White
    1.89
    Black
    11.05
  5. 400#8D9DE2
    White
    2.60
    Black
    8.05
  6. 500#7281C6
    White
    3.70
    Black
    5.67
  7. 600#5C69AB
    White
    5.16
    Black
    4.06
  8. 700#465291
    White
    7.30
    Black
    2.87
  9. 800#303A72
    White
    10.63
    Black
    1.97
  10. 900This color#1E2460
    White
    14.22
    Black
    1.47
  11. 950#0C0F39
    White
    18.37
    Black
    1.14

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #1E2460 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.188; #1E2460 uses 56% of it. Display P3 reaches no further at this hue.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.105
sRGB edge
0.188
Display P3 edge
0.189
Rec. 2020 edge
0.202
Dominant wavelength
466 nm
Excitation purity
67%
Chromaticity
x 0.1926, y 0.1400
  • This color#1E2460
  • Most vivid in sRGB#1D0087
  • Most vivid in Display P3oklch(0.295 0.189 273.7)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #1e2460;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.0998 0 0.5105); }
}

Mixing

Mixing #1E2460

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#8F92B0
  • OKLab50%#848DAF
  • OKLCH50%#848DAF

Black #000000

  • sRGB50%#0F1230
  • OKLab50%#050720
  • OKLCH50%#050720

Its complement #372C00

  • sRGB50%#2B2830
  • OKLab50%#292C38
  • OKLCH50%#003530
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #1e2460, white);
color: color-mix(in oklch, #1e2460 50%, white);

In use

#1E2460 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:114.22:1 Passes
  • Link and body-size textText, 4.5:114.22:1 Passes
  • Large headingLarge text, 3:114.22:1 Passes
  • Icons, borders and focus ringsNon-text, 3:114.22:1 Passes

Dark page

  • Button labelText, 4.5:114.22:1 Passes
  • Link and body-size textText, 4.5:11.31:1 Fails
  • Large headingLarge text, 3:11.31:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.31:1 Fails

For text on this page, the nearest shade that passes is #6B79BE 4.55:1

Color vision

How #1E2460 looks with color blindness

Achromatopsia changes it most, ΔE2000 22.1; deuteranopia changes it least, 4.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #002E62 ΔE2000 6.5

    Noticeable

    Reads as dark soft blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #00285F ΔE2000 4.8

    Close match

    Reads as very dark soft blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #00333E ΔE2000 17.9

    Distinct

    Reads as very dark muted blue

  • Achromatopsia

    No cone color vision; lightness only

    #2B2B2B ΔE2000 22.1

    Distinct

    Reads as near-black

Pairing check

Checked against its complement, #372C00. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#1E2460 · #372C0042.1Stays distinct
Protanopia#002E62 · #322B0039.7Stays distinct
Deuteranopia#00285F · #352E0241.4Stays distinct
Tritanopia#00333E · #3D272431.3Stays distinct
Achromatopsia#2B2B2B · #2D2D2D0.6Easily confused

Harmony

Color harmonies for #1E2460

Its complement is #372C00, a very dark muted brown, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#1E2460
  • Complement#372C00

Complementary

Open in Harmony Studio
  • −30°#002F4E
  • Base#1E2460
  • +30°#381A56
  • Base#1E2460
  • +120°#550E01
  • +240°#00371A
  • Base#1E2460
  • +150°#432400
  • +210°#253200

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-5005: #1e2460;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-5005': '#1e2460',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-5005: oklch(0.295 0.105 273.7);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-5005": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.1176, 0.1412, 0.3765],
        "hex": "#1e2460"
      },
      "$description": "RAL 5005 Signal blue (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral5005 = Color(.sRGB, red: 0.118, green: 0.141, blue: 0.376, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral5005 = Color(0xFF1E2460)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #1E2460 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.