#020527#020527

#020527 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.5% C 0.071 H 267.8°. Best body text is #FFFFFF at 19.93:1 contrast (WCAG AA passes).

Color values

HEX#020527
RGBrgb(2, 5, 39)
HSLhsl(235, 90%, 8%)
HSVhsv(235, 95%, 15%)
CMYKcmyk(94.9%, 87.2%, 0%, 84.7%)
CIE-LABlab(2.42, 7.81, -20.54)
CIE-LCHlch(2.42, 21.98, 290.83°)
OKLaboklab(14.47% -0.0028 -0.0711)
OKLCHoklch(14.47% 0.071 267.8)
XYZxyz(0.4454, 0.2679, 1.9473)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020527 #272402
analogous
#021727 #020527 #110227
triadic
#020527 #270205 #052702
tetradic
#020527 #270217 #272402 #022711
square
#020527 #270217 #272402 #022711
split-complementary
#020527 #271102 #172702
monochromatic
#01041D #01041D #020527 #050C61 #08149B

Accessibility & contrast

On white

19.93
#020527 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020527
19.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020527#FFFFFF#000000##FFFFFF
##0205271.0019.931.0519.93
#FFFFFF19.931.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B28
Deuteranopia (green-blind)
#000726
Tritanopia (blue-blind)
#000E14
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #020527;
/* rgb */ color: rgb(2, 5, 39);
/* oklch */ color: oklch(14.5% 0.071 267.8);
Tailwind
colors: {
  custom: {
    50: '#474961',
    500: '#020527',
    950: '#000000',
  },
}
SCSS
$custom: #020527;
$custom-light: #474961;
$custom-dark: #000000;
JSON
{
  "hex": "#020527",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 39
  },
  "hsl": {
    "h": 235.135,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14466,
    "c": 0.07113,
    "h": 267.8
  },
  "luminance": 0.00268
}

Semantic roles & 50–950 ramp

primary
#020527
secondary
#6C6618
accent
#EE29FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000005
muted
#777779

Preview Lab

Preview with #020527

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

Preview Lab → · Contrast checker → · Palette generator →

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