#051247#051247

#051247 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.100 H 266.0°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#051247
RGBrgb(5, 18, 71)
HSLhsl(228, 87%, 15%)
HSVhsv(228, 93%, 28%)
CMYKcmyk(93%, 74.6%, 0%, 72.2%)
CIE-LABlab(8.30, 18.27, -34.47)
CIE-LCHlch(8.30, 39.01, 297.92°)
OKLaboklab(21.67% -0.007 -0.0999)
OKLCHoklch(21.67% 0.1 266)
XYZxyz(1.4158, 0.9196, 6.0629)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051247 #473A05
analogous
#053347 #051247 #190547
triadic
#051247 #470512 #124705
tetradic
#051247 #470533 #473A05 #054719
square
#051247 #470533 #473A05 #054719
split-complementary
#051247 #471905 #334705
monochromatic
#02071D #02071D #051247 #092080 #0D2FB9

Accessibility & contrast

On white

17.74
#051247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051247
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051247#FFFFFF#000000##FFFFFF
##0512471.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051247;
/* rgb */ color: rgb(5, 18, 71);
/* oklch */ color: oklch(21.7% 0.100 266.0);
Tailwind
colors: {
  custom: {
    50: '#544f7b',
    500: '#051247',
    950: '#000000',
  },
}
SCSS
$custom: #051247;
$custom-light: #544f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#051247",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 228.182,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21666,
    "c": 0.10015,
    "h": 266
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#051247
secondary
#877321
accent
#D42BFD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #051247

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

Preview Lab → · Contrast checker → · Palette generator →

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