#1E228F#1E228F

#1E228F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.173 H 271.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#1E228F
RGBrgb(30, 34, 143)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 79%, 56%)
CMYKcmyk(79%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.59, 37.77, -59.78)
CIE-LCHlch(21.59, 70.71, 302.28°)
OKLaboklab(34% 0.0031 -0.1731)
OKLCHoklch(34% 0.173 271)
XYZxyz(6.0637, 3.4026, 26.3185)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E228F #8F8B1E
analogous
#1E5B8F #1E228F #531E8F
triadic
#1E228F #8F1E22 #228F1E
tetradic
#1E228F #8F1E5B #8F8B1E #1E8F53
square
#1E228F #8F1E5B #8F8B1E #1E8F53
split-complementary
#1E228F #8F531E #5B8F1E
monochromatic
#090A2A #13165C #1E228F #292EC2 #4E53DA

Accessibility & contrast

On white

12.50
#1E228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1E228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E228F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E228F#FFFFFF#000000##FFFFFF
##1E228F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e228f;
/* rgb */ color: rgb(30, 34, 143);
/* oklch */ color: oklch(34.0% 0.173 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f5eb1',
    500: '#1e228f',
    950: '#000000',
  },
}
SCSS
$custom: #1e228f;
$custom-light: #6f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e228f",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 237.876,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34,
    "c": 0.17311,
    "h": 271
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#1E228F
secondary
#BCB84C
accent
#E240E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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