#1E238E#1E238E

#1E238E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 271.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1E238E
RGBrgb(30, 35, 142)
HSLhsl(237, 65%, 34%)
HSVhsv(237, 79%, 56%)
CMYKcmyk(78.9%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.69, 36.82, -58.98)
CIE-LCHlch(21.69, 69.53, 301.97°)
OKLaboklab(34.04% 0.0029 -0.1708)
OKLCHoklch(34.04% 0.171 271)
XYZxyz(6.0173, 3.4304, 25.9309)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E238E #8E891E
analogous
#1E5B8E #1E238E #511E8E
triadic
#1E238E #8E1E23 #238E1E
tetradic
#1E238E #8E1E5B #8E891E #1E8E51
square
#1E238E #8E1E5B #8E891E #1E8E51
split-complementary
#1E238E #8E511E #5B8E1E
monochromatic
#090A29 #13175B #1E238E #292FC1 #4D53D9

Accessibility & contrast

On white

12.45
#1E238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E238E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E238E#FFFFFF#000000##FFFFFF
##1E238E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e238e;
/* rgb */ color: rgb(30, 35, 142);
/* oklch */ color: oklch(34.0% 0.171 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f5fb0',
    500: '#1e238e',
    950: '#000000',
  },
}
SCSS
$custom: #1e238e;
$custom-light: #6f5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e238e",
  "rgb": {
    "r": 30,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 237.321,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.17081,
    "h": 271
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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