#1E228C#1E228C

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

Color values

HEX#1E228C
RGBrgb(30, 34, 140)
HSLhsl(238, 65%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(78.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.26, 36.71, -58.46)
CIE-LCHlch(21.26, 69.03, 302.13°)
OKLaboklab(33.66% 0.0036 -0.1693)
OKLCHoklch(33.66% 0.169 271.2)
XYZxyz(5.8395, 3.3129, 25.1376)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E228C #8C881E
analogous
#1E598C #1E228C #511E8C
triadic
#1E228C #8C1E22 #228C1E
tetradic
#1E228C #8C1E59 #8C881E #1E8C51
square
#1E228C #8C1E59 #8C881E #1E8C51
split-complementary
#1E228C #8C511E #598C1E
monochromatic
#080A27 #13165A #1E228C #292EBE #4C51D9

Accessibility & contrast

On white

12.63
#1E228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E228C
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E228C#FFFFFF#000000##FFFFFF
##1E228C1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e228c;
/* rgb */ color: rgb(30, 34, 140);
/* oklch */ color: oklch(33.7% 0.169 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1e228c',
    950: '#000000',
  },
}
SCSS
$custom: #1e228c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1e228c",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 237.818,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33664,
    "c": 0.16929,
    "h": 271.2
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#1E228C
secondary
#BBB74B
accent
#E240E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E228C

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

Preview Lab → · Contrast checker → · Palette generator →

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