#021335#021335

#021335 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.072 H 260.3°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#021335
RGBrgb(2, 19, 53)
HSLhsl(220, 93%, 11%)
HSVhsv(220, 96%, 21%)
CMYKcmyk(96.2%, 64.2%, 0%, 79.2%)
CIE-LABlab(6.64, 8.19, -24.32)
CIE-LCHlch(6.64, 25.66, 288.60°)
OKLaboklab(19.74% -0.0121 -0.0707)
OKLCHoklch(19.74% 0.072 260.3)
XYZxyz(0.9003, 0.7356, 3.4620)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021335 #352402
analogous
#022C35 #021335 #0A0235
triadic
#021335 #350213 #133502
tetradic
#021335 #35022C #352402 #02350A
square
#021335 #35022C #352402 #02350A
split-complementary
#021335 #350A02 #2C3502
monochromatic
#010B1D #010B1D #021335 #042870 #063DAB

Accessibility & contrast

On white

18.31
#021335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021335
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021335#FFFFFF#000000##FFFFFF
##0213351.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021335;
/* rgb */ color: rgb(2, 19, 53);
/* oklch */ color: oklch(19.7% 0.072 260.3);
Tailwind
colors: {
  custom: {
    50: '#4c506c',
    500: '#021335',
    950: '#000000',
  },
}
SCSS
$custom: #021335;
$custom-light: #4c506c;
$custom-dark: #000000;
JSON
{
  "hex": "#021335",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 220,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19737,
    "c": 0.07169,
    "h": 260.3
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#021335
secondary
#79591A
accent
#B829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021335

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

Preview Lab → · Contrast checker → · Palette generator →

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