#021839#021839

#021839 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.071 H 257.4°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#021839
RGBrgb(2, 24, 57)
HSLhsl(216, 93%, 12%)
HSVhsv(216, 96%, 22%)
CMYKcmyk(96.5%, 57.9%, 0%, 77.6%)
CIE-LABlab(8.67, 6.43, -23.95)
CIE-LCHlch(8.67, 24.80, 285.04°)
OKLaboklab(21.46% -0.0154 -0.069)
OKLCHoklch(21.46% 0.071 257.4)
XYZxyz(1.0899, 0.9614, 3.9982)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021839 #392302
analogous
#023439 #021839 #080239
triadic
#021839 #390218 #183902
tetradic
#021839 #390234 #392302 #023908
square
#021839 #390234 #392302 #023908
split-complementary
#021839 #390802 #343902
monochromatic
#010C1E #010C1E #021839 #043174 #064AAF

Accessibility & contrast

On white

17.61
#021839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#021839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021839
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021839#FFFFFF#000000##FFFFFF
##0218391.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #021839;
/* rgb */ color: rgb(2, 24, 57);
/* oklch */ color: oklch(21.5% 0.071 257.4);
Tailwind
colors: {
  custom: {
    50: '#4d5470',
    500: '#021839',
    950: '#000000',
  },
}
SCSS
$custom: #021839;
$custom-light: #4d5470;
$custom-dark: #000000;
JSON
{
  "hex": "#021839",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 57
  },
  "hsl": {
    "h": 216,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2146,
    "c": 0.07072,
    "h": 257.4
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#021839
secondary
#7D551A
accent
#A929FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #021839

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

Preview Lab → · Contrast checker → · Palette generator →

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