#021336#021336

#021336 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.073 H 260.6°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#021336
RGBrgb(2, 19, 54)
HSLhsl(220, 93%, 11%)
HSVhsv(220, 96%, 21%)
CMYKcmyk(96.3%, 64.8%, 0%, 78.8%)
CIE-LABlab(6.73, 8.72, -24.91)
CIE-LCHlch(6.73, 26.40, 289.30°)
OKLaboklab(19.84% -0.012 -0.0723)
OKLCHoklch(19.84% 0.073 260.6)
XYZxyz(0.9235, 0.7449, 3.5844)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021336 #362502
analogous
#022D36 #021336 #0B0236
triadic
#021336 #360213 #133602
tetradic
#021336 #36022D #362502 #02360B
square
#021336 #36022D #362502 #02360B
split-complementary
#021336 #360B02 #2D3602
monochromatic
#010A1E #010A1E #021336 #042871 #063DAC

Accessibility & contrast

On white

18.28
#021336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021336
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021336#FFFFFF#000000##FFFFFF
##0213361.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#001335
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021336;
/* rgb */ color: rgb(2, 19, 54);
/* oklch */ color: oklch(19.8% 0.073 260.6);
Tailwind
colors: {
  custom: {
    50: '#4c506d',
    500: '#021336',
    950: '#000000',
  },
}
SCSS
$custom: #021336;
$custom-light: #4c506d;
$custom-dark: #000000;
JSON
{
  "hex": "#021336",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 220.385,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.19838,
    "c": 0.07334,
    "h": 260.6
  },
  "luminance": 0.00745
}

Semantic roles & 50–950 ramp

primary
#021336
secondary
#7A5B1A
accent
#B929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021336

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

Preview Lab → · Contrast checker → · Palette generator →

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