#021239#021239

#021239 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.9% C 0.080 H 262.0°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#021239
RGBrgb(2, 18, 57)
HSLhsl(223, 93%, 12%)
HSVhsv(223, 96%, 22%)
CMYKcmyk(96.5%, 68.4%, 0%, 77.6%)
CIE-LABlab(6.69, 11.00, -27.15)
CIE-LCHlch(6.69, 29.29, 292.06°)
OKLaboklab(19.9% -0.011 -0.079)
OKLCHoklch(19.9% 0.08 262)
XYZxyz(0.9796, 0.7408, 3.9615)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021239 #392902
analogous
#022E39 #021239 #0E0239
triadic
#021239 #390212 #123902
tetradic
#021239 #39022E #392902 #02390E
square
#021239 #39022E #392902 #02390E
split-complementary
#021239 #390E02 #2E3902
monochromatic
#01091E #01091E #021239 #042574 #0637AF

Accessibility & contrast

On white

18.29
#021239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#021239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021239
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021239#FFFFFF#000000##FFFFFF
##0212391.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021239;
/* rgb */ color: rgb(2, 18, 57);
/* oklch */ color: oklch(19.9% 0.080 262.0);
Tailwind
colors: {
  custom: {
    50: '#4d4f70',
    500: '#021239',
    950: '#000000',
  },
}
SCSS
$custom: #021239;
$custom-light: #4d4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#021239",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 222.545,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19899,
    "c": 0.07974,
    "h": 262
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#021239
secondary
#7D601A
accent
#C129FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #021239

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

Preview Lab → · Contrast checker → · Palette generator →

#021239 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva