#05022F#05022F

#05022F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.087 H 273.5°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#05022F
RGBrgb(5, 2, 47)
HSLhsl(244, 92%, 10%)
HSVhsv(244, 96%, 18%)
CMYKcmyk(89.4%, 95.7%, 0%, 81.6%)
CIE-LABlab(2.54, 13.53, -26.44)
CIE-LCHlch(2.54, 29.70, 297.09°)
OKLaboklab(15.09% 0.0053 -0.0873)
OKLCHoklch(15.09% 0.087 273.5)
XYZxyz(0.5972, 0.2809, 2.7115)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05022F #2C2F02
analogous
#02162F #05022F #1C022F
triadic
#05022F #2F0502 #022F05
tetradic
#05022F #2F0216 #2C2F02 #022F1C
square
#05022F #2F0216 #2C2F02 #022F1C
split-complementary
#05022F #2F1C02 #162F02
monochromatic
#03011D #03011D #05022F #0B046A #1107A4

Accessibility & contrast

On white

19.88
#05022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#05022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05022F
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05022F#FFFFFF#000000##FFFFFF
##05022F1.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B30
Deuteranopia (green-blind)
#00072E
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #05022f;
/* rgb */ color: rgb(5, 2, 47);
/* oklch */ color: oklch(15.1% 0.087 273.5);
Tailwind
colors: {
  custom: {
    50: '#4a4768',
    500: '#05022f',
    950: '#000000',
  },
}
SCSS
$custom: #05022f;
$custom-light: #4a4768;
$custom-dark: #000000;
JSON
{
  "hex": "#05022f",
  "rgb": {
    "r": 5,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 244,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15087,
    "c": 0.08743,
    "h": 273.5
  },
  "luminance": 0.00281
}

Semantic roles & 50–950 ramp

primary
#05022F
secondary
#6E7419
accent
#FF29F1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #05022F

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

Preview Lab → · Contrast checker → · Palette generator →

#05022F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva