#021333#021333

#021333 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.5% C 0.068 H 259.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#021333
RGBrgb(2, 19, 51)
HSLhsl(219, 92%, 10%)
HSVhsv(219, 96%, 20%)
CMYKcmyk(96.1%, 62.7%, 0%, 80%)
CIE-LABlab(6.48, 7.09, -23.12)
CIE-LCHlch(6.48, 24.18, 287.05°)
OKLaboklab(19.54% -0.0124 -0.0672)
OKLCHoklch(19.54% 0.068 259.6)
XYZxyz(0.8552, 0.7176, 3.2248)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021333 #332202
analogous
#022B33 #021333 #0A0233
triadic
#021333 #330213 #133302
tetradic
#021333 #33022B #332202 #02330A
square
#021333 #33022B #332202 #02330A
split-complementary
#021333 #330A02 #2B3302
monochromatic
#010B1D #010B1D #021333 #04296E #073FA9

Accessibility & contrast

On white

18.36
#021333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#021333 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021333
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021333#FFFFFF#000000##FFFFFF
##0213331.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011734
Deuteranopia (green-blind)
#001232
Tritanopia (blue-blind)
#001B20
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021333;
/* rgb */ color: rgb(2, 19, 51);
/* oklch */ color: oklch(19.5% 0.068 259.6);
Tailwind
colors: {
  custom: {
    50: '#4b506b',
    500: '#021333',
    950: '#000000',
  },
}
SCSS
$custom: #021333;
$custom-light: #4b506b;
$custom-dark: #000000;
JSON
{
  "hex": "#021333",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 51
  },
  "hsl": {
    "h": 219.184,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19537,
    "c": 0.06838,
    "h": 259.6
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#021333
secondary
#77571A
accent
#B529FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021333

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

Preview Lab → · Contrast checker → · Palette generator →

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