#1E228A#1E228A

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

Color values

HEX#1E228A
RGBrgb(30, 34, 138)
HSLhsl(238, 64%, 33%)
HSVhsv(238, 78%, 54%)
CMYKcmyk(78.3%, 75.4%, 0%, 45.9%)
CIE-LABlab(21.04, 36.00, -57.57)
CIE-LCHlch(21.04, 67.90, 302.02°)
OKLaboklab(33.44% 0.004 -0.1667)
OKLCHoklch(33.44% 0.167 271.4)
XYZxyz(5.6933, 3.2544, 24.3679)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E228A #8A861E
analogous
#1E588A #1E228A #501E8A
triadic
#1E228A #8A1E22 #228A1E
tetradic
#1E228A #8A1E58 #8A861E #1E8A50
square
#1E228A #8A1E58 #8A861E #1E8A50
split-complementary
#1E228A #8A501E #588A1E
monochromatic
#080925 #131658 #1E228A #292EBC #4B50D8

Accessibility & contrast

On white

12.72
#1E228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1E228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E228A
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E228A#FFFFFF#000000##FFFFFF
##1E228A1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e228a;
/* rgb */ color: rgb(30, 34, 138);
/* oklch */ color: oklch(33.4% 0.167 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#1e228a',
    950: '#000000',
  },
}
SCSS
$custom: #1e228a;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1e228a",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 237.778,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.16673,
    "h": 271.4
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#1E228A
secondary
#BAB64A
accent
#E141E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E228A

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

Preview Lab → · Contrast checker → · Palette generator →

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