#021133#021133

#021133 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.0% C 0.071 H 261.2°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#021133
RGBrgb(2, 17, 51)
HSLhsl(222, 92%, 10%)
HSVhsv(222, 96%, 20%)
CMYKcmyk(96.1%, 66.7%, 0%, 80%)
CIE-LABlab(5.90, 8.29, -24.06)
CIE-LCHlch(5.90, 25.45, 289.02°)
OKLaboklab(19.01% -0.0109 -0.0706)
OKLCHoklch(19.01% 0.071 261.2)
XYZxyz(0.8228, 0.6527, 3.2139)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021133 #332402
analogous
#022933 #021133 #0C0233
triadic
#021133 #330211 #113302
tetradic
#021133 #330229 #332402 #02330C
square
#021133 #330229 #332402 #02330C
split-complementary
#021133 #330C02 #293302
monochromatic
#010A1D #010A1D #021133 #04256E #0738A9

Accessibility & contrast

On white

18.57
#021133 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#021133 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021133
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021133#FFFFFF#000000##FFFFFF
##0211331.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#001132
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #021133;
/* rgb */ color: rgb(2, 17, 51);
/* oklch */ color: oklch(19.0% 0.071 261.2);
Tailwind
colors: {
  custom: {
    50: '#4b4e6b',
    500: '#021133',
    950: '#000000',
  },
}
SCSS
$custom: #021133;
$custom-light: #4b4e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#021133",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 51
  },
  "hsl": {
    "h": 221.633,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19008,
    "c": 0.07145,
    "h": 261.2
  },
  "luminance": 0.00653
}

Semantic roles & 50–950 ramp

primary
#021133
secondary
#775B1A
accent
#BD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #021133

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

Preview Lab → · Contrast checker → · Palette generator →

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