#020531#020531

#020531 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.9% C 0.087 H 267.2°. Best body text is #FFFFFF at 19.65:1 contrast (WCAG AA passes).

Color values

HEX#020531
RGBrgb(2, 5, 49)
HSLhsl(236, 92%, 10%)
HSVhsv(236, 96%, 19%)
CMYKcmyk(95.9%, 89.8%, 0%, 80.8%)
CIE-LABlab(3.10, 12.59, -27.06)
CIE-LCHlch(3.10, 29.84, 294.96°)
OKLaboklab(15.86% -0.0043 -0.0864)
OKLCHoklch(15.86% 0.087 267.2)
XYZxyz(0.6335, 0.3431, 2.9380)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020531 #312E02
analogous
#021D31 #020531 #160231
triadic
#020531 #310205 #053102
tetradic
#020531 #31021D #312E02 #023116
square
#020531 #31021D #312E02 #023116
split-complementary
#020531 #311602 #1D3102
monochromatic
#01031D #01031D #020531 #040B6C #0711A7

Accessibility & contrast

On white

19.65
#020531 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020531
19.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020531#FFFFFF#000000##FFFFFF
##0205311.0019.651.0719.65
#FFFFFF19.651.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000930
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #020531;
/* rgb */ color: rgb(2, 5, 49);
/* oklch */ color: oklch(15.9% 0.087 267.2);
Tailwind
colors: {
  custom: {
    50: '#4a4869',
    500: '#020531',
    950: '#000000',
  },
}
SCSS
$custom: #020531;
$custom-light: #4a4869;
$custom-dark: #000000;
JSON
{
  "hex": "#020531",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 49
  },
  "hsl": {
    "h": 236.17,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.15864,
    "c": 0.08656,
    "h": 267.2
  },
  "luminance": 0.00343
}

Semantic roles & 50–950 ramp

primary
#020531
secondary
#757019
accent
#F129FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #020531

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

Preview Lab → · Contrast checker → · Palette generator →

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