#1E227F#1E227F

#1E227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.152 H 272.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1E227F
RGBrgb(30, 34, 127)
HSLhsl(238, 62%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(76.4%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.85, 32.03, -52.60)
CIE-LCHlch(19.85, 61.59, 301.34°)
OKLaboklab(32.24% 0.0057 -0.1522)
OKLCHoklch(32.24% 0.152 272.1)
XYZxyz(4.9369, 2.9519, 20.3841)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E227F #7F7B1E
analogous
#1E527F #1E227F #4A1E7F
triadic
#1E227F #7F1E22 #227F1E
tetradic
#1E227F #7F1E52 #7F7B1E #1E7F4A
square
#1E227F #7F1E52 #7F7B1E #1E7F4A
split-complementary
#1E227F #7F4A1E #527F1E
monochromatic
#07071C #12154D #1E227F #2A2FB1 #444AD3

Accessibility & contrast

On white

13.20
#1E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E227F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E227F#FFFFFF#000000##FFFFFF
##1E227F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1e227f;
/* rgb */ color: rgb(30, 34, 127);
/* oklch */ color: oklch(32.2% 0.152 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ea5',
    500: '#1e227f',
    950: '#000000',
  },
}
SCSS
$custom: #1e227f;
$custom-light: #6b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e227f",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 237.526,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3224,
    "c": 0.15231,
    "h": 272.1
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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