#1E228D#1E228D

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

Color values

HEX#1E228D
RGBrgb(30, 34, 141)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(78.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.37, 37.06, -58.90)
CIE-LCHlch(21.37, 69.59, 302.18°)
OKLaboklab(33.78% 0.0035 -0.1705)
OKLCHoklch(33.78% 0.171 271.2)
XYZxyz(5.9135, 3.3425, 25.5276)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E228D #8D891E
analogous
#1E598D #1E228D #511E8D
triadic
#1E228D #8D1E22 #228D1E
tetradic
#1E228D #8D1E59 #8D891E #1E8D51
square
#1E228D #8D1E59 #8D891E #1E8D51
split-complementary
#1E228D #8D511E #598D1E
monochromatic
#090A28 #13165B #1E228D #292EBF #4C51D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1E228D#FFFFFF#000000##FFFFFF
##1E228D1.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)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e228d;
/* rgb */ color: rgb(30, 34, 141);
/* oklch */ color: oklch(33.8% 0.171 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1e228d',
    950: '#000000',
  },
}
SCSS
$custom: #1e228d;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1e228d",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 237.838,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33776,
    "c": 0.17058,
    "h": 271.2
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#1E228D
secondary
#BCB84B
accent
#E240E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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