#051246#051246

#051246 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.099 H 265.9°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#051246
RGBrgb(5, 18, 70)
HSLhsl(228, 87%, 15%)
HSVhsv(228, 93%, 27%)
CMYKcmyk(92.9%, 74.3%, 0%, 72.5%)
CIE-LABlab(8.19, 17.83, -33.95)
CIE-LCHlch(8.19, 38.35, 297.70°)
OKLaboklab(21.55% -0.007 -0.0984)
OKLCHoklch(21.55% 0.099 265.9)
XYZxyz(1.3840, 0.9069, 5.8953)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051246 #463905
analogous
#053346 #051246 #190546
triadic
#051246 #460512 #124605
tetradic
#051246 #460533 #463905 #054619
square
#051246 #460533 #463905 #054619
split-complementary
#051246 #461905 #334605
monochromatic
#02071D #02071D #051246 #09217F #0D2FB8

Accessibility & contrast

On white

17.78
#051246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#051246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051246
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051246#FFFFFF#000000##FFFFFF
##0512461.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051246;
/* rgb */ color: rgb(5, 18, 70);
/* oklch */ color: oklch(21.5% 0.099 265.9);
Tailwind
colors: {
  custom: {
    50: '#534f7a',
    500: '#051246',
    950: '#000000',
  },
}
SCSS
$custom: #051246;
$custom-light: #534f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#051246",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 228,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21549,
    "c": 0.09865,
    "h": 265.9
  },
  "luminance": 0.00907
}

Semantic roles & 50–950 ramp

primary
#051246
secondary
#867221
accent
#D32BFD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #051246

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

Preview Lab → · Contrast checker → · Palette generator →

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