#1E238B#1E238B

#1E238B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.167 H 271.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1E238B
RGBrgb(30, 35, 139)
HSLhsl(237, 64%, 33%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(78.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.36, 35.75, -57.66)
CIE-LCHlch(21.36, 67.84, 301.80°)
OKLaboklab(33.71% 0.0034 -0.1669)
OKLCHoklch(33.71% 0.167 271.2)
XYZxyz(5.7951, 3.3415, 24.7607)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E238B #8B861E
analogous
#1E598B #1E238B #4F1E8B
triadic
#1E238B #8B1E23 #238B1E
tetradic
#1E238B #8B1E59 #8B861E #1E8B4F
square
#1E238B #8B1E59 #8B861E #1E8B4F
split-complementary
#1E238B #8B4F1E #598B1E
monochromatic
#080A26 #131659 #1E238B #2930BD #4B52D8

Accessibility & contrast

On white

12.59
#1E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E238B
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E238B#FFFFFF#000000##FFFFFF
##1E238B1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e238b;
/* rgb */ color: rgb(30, 35, 139);
/* oklch */ color: oklch(33.7% 0.167 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fae',
    500: '#1e238b',
    950: '#000000',
  },
}
SCSS
$custom: #1e238b;
$custom-light: #6e5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1e238b",
  "rgb": {
    "r": 30,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 237.248,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33708,
    "c": 0.16696,
    "h": 271.2
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#1E238B
secondary
#BBB54A
accent
#E040E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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