#1E229E#1E229E

#1E229E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.192 H 270.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#1E229E
RGBrgb(30, 34, 158)
HSLhsl(238, 68%, 37%)
HSVhsv(238, 81%, 62%)
CMYKcmyk(81%, 78.5%, 0%, 38%)
CIE-LABlab(23.30, 42.93, -66.19)
CIE-LCHlch(23.30, 78.89, 302.96°)
OKLaboklab(35.71% 0.0004 -0.1917)
OKLCHoklch(35.71% 0.192 270.1)
XYZxyz(7.2769, 3.8879, 32.7080)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E229E #9E9A1E
analogous
#1E629E #1E229E #5A1E9E
triadic
#1E229E #9E1E22 #229E1E
tetradic
#1E229E #9E1E62 #9E9A1E #1E9E5A
square
#1E229E #9E1E62 #9E9A1E #1E9E5A
split-complementary
#1E229E #9E5A1E #629E1E
monochromatic
#0A0C37 #14176B #1E229E #282DD1 #575BDF

Accessibility & contrast

On white

11.81
#1E229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1E229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E229E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E229E#FFFFFF#000000##FFFFFF
##1E229E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1e229e;
/* rgb */ color: rgb(30, 34, 158);
/* oklch */ color: oklch(35.7% 0.192 270.1);
Tailwind
colors: {
  custom: {
    50: '#735fbc',
    500: '#1e229e',
    950: '#000000',
  },
}
SCSS
$custom: #1e229e;
$custom-light: #735fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1e229e",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 238.125,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.19171,
    "h": 270.1
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#1E229E
secondary
#C3BF55
accent
#E63DEB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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