#021330#021330

#021330 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.2% C 0.063 H 258.3°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#021330
RGBrgb(2, 19, 48)
HSLhsl(218, 92%, 10%)
HSVhsv(218, 96%, 19%)
CMYKcmyk(95.8%, 60.4%, 0%, 81.2%)
CIE-LABlab(6.25, 5.47, -21.28)
CIE-LCHlch(6.25, 21.97, 284.41°)
OKLaboklab(19.25% -0.0129 -0.062)
OKLCHoklch(19.25% 0.063 258.3)
XYZxyz(0.7912, 0.6920, 2.8876)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021330 #301F02
analogous
#022A30 #021330 #080230
triadic
#021330 #300213 #133002
tetradic
#021330 #30022A #301F02 #023008
square
#021330 #30022A #301F02 #023008
split-complementary
#021330 #300802 #2A3002
monochromatic
#010C1D #010C1D #021330 #042A6B #0742A6

Accessibility & contrast

On white

18.45
#021330 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021330
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021330#FFFFFF#000000##FFFFFF
##0213301.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031631
Deuteranopia (green-blind)
#00122F
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021330;
/* rgb */ color: rgb(2, 19, 48);
/* oklch */ color: oklch(19.2% 0.063 258.3);
Tailwind
colors: {
  custom: {
    50: '#4a5068',
    500: '#021330',
    950: '#000000',
  },
}
SCSS
$custom: #021330;
$custom-light: #4a5068;
$custom-dark: #000000;
JSON
{
  "hex": "#021330",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 48
  },
  "hsl": {
    "h": 217.826,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19245,
    "c": 0.06337,
    "h": 258.3
  },
  "luminance": 0.00692
}

Semantic roles & 50–950 ramp

primary
#021330
secondary
#755319
accent
#B029FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021330

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

Preview Lab → · Contrast checker → · Palette generator →

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