#020525#020525

#020525 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.2% C 0.068 H 267.9°. Best body text is #FFFFFF at 19.98:1 contrast (WCAG AA passes).

Color values

HEX#020525
RGBrgb(2, 5, 37)
HSLhsl(235, 90%, 8%)
HSVhsv(235, 95%, 15%)
CMYKcmyk(94.6%, 86.5%, 0%, 85.5%)
CIE-LABlab(2.30, 6.99, -19.18)
CIE-LCHlch(2.30, 20.41, 290.04°)
OKLaboklab(14.2% -0.0025 -0.0678)
OKLCHoklch(14.2% 0.068 267.9)
XYZxyz(0.4131, 0.2550, 1.7773)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020525 #252202
analogous
#021625 #020525 #100225
triadic
#020525 #250205 #052502
tetradic
#020525 #250216 #252202 #022510
square
#020525 #250216 #252202 #022510
split-complementary
#020525 #251002 #162502
monochromatic
#02041D #02041D #020525 #050D5F #081599

Accessibility & contrast

On white

19.98
#020525 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#020525 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020525
19.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020525#FFFFFF#000000##FFFFFF
##0205251.0019.981.0519.98
#FFFFFF19.981.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A26
Deuteranopia (green-blind)
#000724
Tritanopia (blue-blind)
#000D13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #020525;
/* rgb */ color: rgb(2, 5, 37);
/* oklch */ color: oklch(14.2% 0.068 267.9);
Tailwind
colors: {
  custom: {
    50: '#47495f',
    500: '#020525',
    950: '#000000',
  },
}
SCSS
$custom: #020525;
$custom-light: #47495f;
$custom-dark: #000000;
JSON
{
  "hex": "#020525",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 37
  },
  "hsl": {
    "h": 234.857,
    "s": 89.744,
    "l": 7.647
  },
  "oklch": {
    "l": 0.14197,
    "c": 0.06789,
    "h": 267.9
  },
  "luminance": 0.00255
}

Semantic roles & 50–950 ramp

primary
#020525
secondary
#6A6318
accent
#ED29FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #020525

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

Preview Lab → · Contrast checker → · Palette generator →

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