#020239#020239

#020239 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.3% C 0.103 H 267.1°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#020239
RGBrgb(2, 2, 57)
HSLhsl(240, 93%, 12%)
HSVhsv(240, 96%, 22%)
CMYKcmyk(96.5%, 96.5%, 0%, 77.6%)
CIE-LABlab(3.18, 18.47, -32.85)
CIE-LCHlch(3.18, 37.68, 299.35°)
OKLaboklab(16.31% -0.0052 -0.1027)
OKLCHoklch(16.31% 0.103 267.1)
XYZxyz(0.7850, 0.3516, 3.8966)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020239 #393902
analogous
#021E39 #020239 #1E0239
triadic
#020239 #390202 #023902
tetradic
#020239 #39021E #393902 #02391E
square
#020239 #39021E #393902 #02391E
split-complementary
#020239 #391E02 #1E3902
monochromatic
#01011E #01011E #020239 #040474 #0606AF

Accessibility & contrast

On white

19.62
#020239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#020239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020239
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020239#FFFFFF#000000##FFFFFF
##0202391.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F3A
Deuteranopia (green-blind)
#000838
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #020239;
/* rgb */ color: rgb(2, 2, 57);
/* oklch */ color: oklch(16.3% 0.103 267.1);
Tailwind
colors: {
  custom: {
    50: '#4d4770',
    500: '#020239',
    950: '#000000',
  },
}
SCSS
$custom: #020239;
$custom-light: #4d4770;
$custom-dark: #000000;
JSON
{
  "hex": "#020239",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 240,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.16315,
    "c": 0.10282,
    "h": 267.1
  },
  "luminance": 0.00352
}

Semantic roles & 50–950 ramp

primary
#020239
secondary
#7D7D1A
accent
#FF29FF
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #020239

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

Preview Lab → · Contrast checker → · Palette generator →

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