#1E227E#1E227E

#1E227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.151 H 272.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#1E227E
RGBrgb(30, 34, 126)
HSLhsl(238, 62%, 31%)
HSVhsv(238, 76%, 49%)
CMYKcmyk(76.2%, 73%, 0%, 50.6%)
CIE-LABlab(19.74, 31.66, -52.14)
CIE-LCHlch(19.74, 61.00, 301.27°)
OKLaboklab(32.13% 0.0059 -0.1509)
OKLCHoklch(32.13% 0.151 272.2)
XYZxyz(4.8721, 2.9259, 20.0426)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E227E #7E7A1E
analogous
#1E527E #1E227E #4A1E7E
triadic
#1E227E #7E1E22 #227E1E
tetradic
#1E227E #7E1E52 #7E7A1E #1E7E4A
square
#1E227E #7E1E52 #7E7A1E #1E7E4A
split-complementary
#1E227E #7E4A1E #527E1E
monochromatic
#06071B #12154D #1E227E #2A2FAF #444AD2

Accessibility & contrast

On white

13.25
#1E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E227E
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E227E#FFFFFF#000000##FFFFFF
##1E227E1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1e227e;
/* rgb */ color: rgb(30, 34, 126);
/* oklch */ color: oklch(32.1% 0.151 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ea4',
    500: '#1e227e',
    950: '#000000',
  },
}
SCSS
$custom: #1e227e;
$custom-light: #6a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e227e",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 237.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.15097,
    "h": 272.2
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#1E227E
secondary
#B1AD47
accent
#DE43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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