#020236#020236

#020236 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.099 H 267.4°. Best body text is #FFFFFF at 19.73:1 contrast (WCAG AA passes).

Color values

HEX#020236
RGBrgb(2, 2, 54)
HSLhsl(240, 93%, 11%)
HSVhsv(240, 96%, 21%)
CMYKcmyk(96.3%, 96.3%, 0%, 78.8%)
CIE-LABlab(2.91, 16.62, -31.07)
CIE-LCHlch(2.91, 35.23, 298.15°)
OKLaboklab(15.84% -0.0045 -0.0987)
OKLCHoklch(15.84% 0.099 267.4)
XYZxyz(0.7124, 0.3226, 3.5140)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020236 #363602
analogous
#021C36 #020236 #1C0236
triadic
#020236 #360202 #023602
tetradic
#020236 #36021C #363602 #02361C
square
#020236 #36021C #363602 #02361C
split-complementary
#020236 #361C02 #1C3602
monochromatic
#01011E #01011E #020236 #040471 #0606AC

Accessibility & contrast

On white

19.73
#020236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#020236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020236
19.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020236#FFFFFF#000000##FFFFFF
##0202361.0019.731.0619.73
#FFFFFF19.731.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000835
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #020236;
/* rgb */ color: rgb(2, 2, 54);
/* oklch */ color: oklch(15.8% 0.099 267.4);
Tailwind
colors: {
  custom: {
    50: '#4b476e',
    500: '#020236',
    950: '#000000',
  },
}
SCSS
$custom: #020236;
$custom-light: #4b476e;
$custom-dark: #000000;
JSON
{
  "hex": "#020236",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 240,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.15836,
    "c": 0.09884,
    "h": 267.4
  },
  "luminance": 0.00323
}

Semantic roles & 50–950 ramp

primary
#020236
secondary
#7A7A1A
accent
#FF29FF
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#010007
muted
#77777A

Preview Lab

Preview with #020236

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

Preview Lab → · Contrast checker → · Palette generator →

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