#020539#020539

#020539 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.0% C 0.098 H 266.7°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#020539
RGBrgb(2, 5, 57)
HSLhsl(237, 93%, 12%)
HSVhsv(237, 96%, 22%)
CMYKcmyk(96.5%, 91.2%, 0%, 77.6%)
CIE-LABlab(3.76, 17.27, -31.89)
CIE-LCHlch(3.76, 36.27, 298.43°)
OKLaboklab(17.03% -0.0057 -0.0979)
OKLCHoklch(17.03% 0.098 266.7)
XYZxyz(0.8176, 0.4167, 3.9075)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020539 #393602
analogous
#022139 #020539 #1B0239
triadic
#020539 #390205 #053902
tetradic
#020539 #390221 #393602 #02391B
square
#020539 #390221 #393602 #02391B
split-complementary
#020539 #391B02 #213902
monochromatic
#01031E #01031E #020539 #040A74 #060FAF

Accessibility & contrast

On white

19.38
#020539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#020539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020539
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020539#FFFFFF#000000##FFFFFF
##0205391.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103A
Deuteranopia (green-blind)
#000A38
Tritanopia (blue-blind)
#00151F
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #020539;
/* rgb */ color: rgb(2, 5, 57);
/* oklch */ color: oklch(17.0% 0.098 266.7);
Tailwind
colors: {
  custom: {
    50: '#4d4870',
    500: '#020539',
    950: '#000000',
  },
}
SCSS
$custom: #020539;
$custom-light: #4d4870;
$custom-dark: #000000;
JSON
{
  "hex": "#020539",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 236.727,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17026,
    "c": 0.09807,
    "h": 266.7
  },
  "luminance": 0.00417
}

Semantic roles & 50–950 ramp

primary
#020539
secondary
#7D771A
accent
#F329FF
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #020539

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

Preview Lab → · Contrast checker → · Palette generator →

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