#1E2287#1E2287

#1E2287 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.163 H 271.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1E2287
RGBrgb(30, 34, 135)
HSLhsl(238, 64%, 32%)
HSVhsv(238, 78%, 53%)
CMYKcmyk(77.8%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.71, 34.93, -56.23)
CIE-LCHlch(20.71, 66.20, 301.84°)
OKLaboklab(33.11% 0.0045 -0.1628)
OKLCHoklch(33.11% 0.163 271.6)
XYZxyz(5.4791, 3.1688, 23.2398)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2287 #87831E
analogous
#1E5787 #1E2287 #4E1E87
triadic
#1E2287 #871E22 #22871E
tetradic
#1E2287 #871E57 #87831E #1E874E
square
#1E2287 #871E57 #87831E #1E874E
split-complementary
#1E2287 #874E1E #57871E
monochromatic
#080923 #131555 #1E2287 #292FB9 #494ED7

Accessibility & contrast

On white

12.85
#1E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2287
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2287#FFFFFF#000000##FFFFFF
##1E22871.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e2287;
/* rgb */ color: rgb(30, 34, 135);
/* oklch */ color: oklch(33.1% 0.163 271.6);
Tailwind
colors: {
  custom: {
    50: '#6d5eab',
    500: '#1e2287',
    950: '#000000',
  },
}
SCSS
$custom: #1e2287;
$custom-light: #6d5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2287",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 237.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.16285,
    "h": 271.6
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#1E2287
secondary
#B9B448
accent
#E041E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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