#1E228B#1E228B

#1E228B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.168 H 271.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1E228B
RGBrgb(30, 34, 139)
HSLhsl(238, 64%, 33%)
HSVhsv(238, 78%, 55%)
CMYKcmyk(78.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.15, 36.36, -58.02)
CIE-LCHlch(21.15, 68.47, 302.07°)
OKLaboklab(33.55% 0.0038 -0.168)
OKLCHoklch(33.55% 0.168 271.3)
XYZxyz(5.7661, 3.2835, 24.7510)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E228B #8B871E
analogous
#1E588B #1E228B #501E8B
triadic
#1E228B #8B1E22 #228B1E
tetradic
#1E228B #8B1E58 #8B871E #1E8B50
square
#1E228B #8B1E58 #8B871E #1E8B50
split-complementary
#1E228B #8B501E #588B1E
monochromatic
#080926 #131659 #1E228B #292EBD #4B50D8

Accessibility & contrast

On white

12.68
#1E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1E228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E228B
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E228B#FFFFFF#000000##FFFFFF
##1E228B1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e228b;
/* rgb */ color: rgb(30, 34, 139);
/* oklch */ color: oklch(33.6% 0.168 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e5eae',
    500: '#1e228b',
    950: '#000000',
  },
}
SCSS
$custom: #1e228b;
$custom-light: #6e5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1e228b",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 237.798,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33553,
    "c": 0.16801,
    "h": 271.3
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#1E228B
secondary
#BBB74A
accent
#E140E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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