#051239#051239

#051239 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.078 H 264.9°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#051239
RGBrgb(5, 18, 57)
HSLhsl(225, 84%, 12%)
HSVhsv(225, 91%, 22%)
CMYKcmyk(91.2%, 68.4%, 0%, 77.6%)
CIE-LABlab(6.87, 11.62, -26.86)
CIE-LCHlch(6.87, 29.26, 293.40°)
OKLaboklab(20.1% -0.0069 -0.0779)
OKLCHoklch(20.1% 0.078 264.9)
XYZxyz(1.0172, 0.7602, 3.9632)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051239 #392C05
analogous
#052C39 #051239 #120539
triadic
#051239 #390512 #123905
tetradic
#051239 #39052C #392C05 #053912
square
#051239 #39052C #392C05 #053912
split-complementary
#051239 #391205 #2C3905
monochromatic
#02091C #02091C #051239 #0A2471 #0F36AA

Accessibility & contrast

On white

18.23
#051239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#051239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051239
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051239#FFFFFF#000000##FFFFFF
##0512391.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #051239;
/* rgb */ color: rgb(5, 18, 57);
/* oklch */ color: oklch(20.1% 0.078 264.9);
Tailwind
colors: {
  custom: {
    50: '#4f4f70',
    500: '#051239',
    950: '#000000',
  },
}
SCSS
$custom: #051239;
$custom-light: #4f4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#051239",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 225,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20101,
    "c": 0.07823,
    "h": 264.9
  },
  "luminance": 0.0076
}

Semantic roles & 50–950 ramp

primary
#051239
secondary
#7A6320
accent
#C72EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #051239

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

Preview Lab → · Contrast checker → · Palette generator →

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