#1E238F#1E238F

#1E238F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 270.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1E238F
RGBrgb(30, 35, 143)
HSLhsl(237, 65%, 34%)
HSVhsv(237, 79%, 56%)
CMYKcmyk(79%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.80, 37.17, -59.42)
CIE-LCHlch(21.80, 70.09, 302.03°)
OKLaboklab(34.15% 0.0027 -0.1721)
OKLCHoklch(34.15% 0.172 270.9)
XYZxyz(6.0927, 3.4606, 26.3281)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E238F #8F8A1E
analogous
#1E5C8F #1E238F #521E8F
triadic
#1E238F #8F1E23 #238F1E
tetradic
#1E238F #8F1E5C #8F8A1E #1E8F52
square
#1E238F #8F1E5C #8F8A1E #1E8F52
split-complementary
#1E238F #8F521E #5C8F1E
monochromatic
#090A2A #13175C #1E238F #292FC2 #4E54DA

Accessibility & contrast

On white

12.41
#1E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E238F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E238F#FFFFFF#000000##FFFFFF
##1E238F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e238f;
/* rgb */ color: rgb(30, 35, 143);
/* oklch */ color: oklch(34.2% 0.172 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f5fb1',
    500: '#1e238f',
    950: '#000000',
  },
}
SCSS
$custom: #1e238f;
$custom-light: #6f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e238f",
  "rgb": {
    "r": 30,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 237.345,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.17209,
    "h": 270.9
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#1E238F
secondary
#BCB74C
accent
#E140E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E238F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1E238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva