#05102F#05102F

#05102F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.065 H 264.8°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#05102F
RGBrgb(5, 16, 47)
HSLhsl(224, 81%, 10%)
HSVhsv(224, 89%, 18%)
CMYKcmyk(89.4%, 66%, 0%, 81.6%)
CIE-LABlab(5.49, 7.49, -21.74)
CIE-LCHlch(5.49, 22.99, 289.02°)
OKLaboklab(18.57% -0.0059 -0.0642)
OKLCHoklch(18.57% 0.065 264.8)
XYZxyz(0.7608, 0.6080, 2.7660)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05102F #2F2405
analogous
#05252F #05102F #0F052F
triadic
#05102F #2F0510 #102F05
tetradic
#05102F #2F0525 #2F2405 #052F0F
square
#05102F #2F0525 #2F2405 #052F0F
split-complementary
#05102F #2F0F05 #252F05
monochromatic
#03091C #03091C #05102F #0B2366 #11369E

Accessibility & contrast

On white

18.72
#05102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#05102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05102F
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05102F#FFFFFF#000000##FFFFFF
##05102F1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #05102f;
/* rgb */ color: rgb(5, 16, 47);
/* oklch */ color: oklch(18.6% 0.065 264.8);
Tailwind
colors: {
  custom: {
    50: '#4b4e68',
    500: '#05102f',
    950: '#000000',
  },
}
SCSS
$custom: #05102f;
$custom-light: #4b4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#05102f",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 224.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18567,
    "c": 0.06452,
    "h": 264.8
  },
  "luminance": 0.00608
}

Semantic roles & 50–950 ramp

primary
#05102F
secondary
#715B1F
accent
#C331F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05102F

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

Preview Lab → · Contrast checker → · Palette generator →

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