#020339#020339

#020339 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.101 H 267.0°. Best body text is #FFFFFF at 19.54:1 contrast (WCAG AA passes).

Color values

HEX#020339
RGBrgb(2, 3, 57)
HSLhsl(239, 93%, 12%)
HSVhsv(239, 96%, 22%)
CMYKcmyk(96.5%, 94.7%, 0%, 77.6%)
CIE-LABlab(3.37, 18.07, -32.53)
CIE-LCHlch(3.37, 37.21, 299.05°)
OKLaboklab(16.56% -0.0053 -0.101)
OKLCHoklch(16.56% 0.101 267)
XYZxyz(0.7959, 0.3733, 3.9002)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020339 #393802
analogous
#021F39 #020339 #1D0239
triadic
#020339 #390203 #033902
tetradic
#020339 #39021F #393802 #02391D
square
#020339 #39021F #393802 #02391D
split-complementary
#020339 #391D02 #1F3902
monochromatic
#01021E #01021E #020339 #040674 #0609AF

Accessibility & contrast

On white

19.54
#020339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020339
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020339#FFFFFF#000000##FFFFFF
##0203391.0019.541.0719.54
#FFFFFF19.541.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020339;
/* rgb */ color: rgb(2, 3, 57);
/* oklch */ color: oklch(16.6% 0.101 267.0);
Tailwind
colors: {
  custom: {
    50: '#4d4770',
    500: '#020339',
    950: '#000000',
  },
}
SCSS
$custom: #020339;
$custom-light: #4d4770;
$custom-dark: #000000;
JSON
{
  "hex": "#020339",
  "rgb": {
    "r": 2,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 238.909,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.16559,
    "c": 0.10119,
    "h": 267
  },
  "luminance": 0.00373
}

Semantic roles & 50–950 ramp

primary
#020339
secondary
#7D7B1A
accent
#FB29FF
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #020339

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

Preview Lab → · Contrast checker → · Palette generator →

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