#05102D#05102D

#05102D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.4% C 0.061 H 264.3°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#05102D
RGBrgb(5, 16, 45)
HSLhsl(224, 80%, 10%)
HSVhsv(224, 89%, 18%)
CMYKcmyk(88.9%, 64.4%, 0%, 82.4%)
CIE-LABlab(5.35, 6.49, -20.47)
CIE-LCHlch(5.35, 21.48, 287.60°)
OKLaboklab(18.37% -0.0061 -0.0607)
OKLCHoklch(18.37% 0.061 264.3)
XYZxyz(0.7214, 0.5922, 2.5584)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05102D #2D2205
analogous
#05242D #05102D #0E052D
triadic
#05102D #2D0510 #102D05
tetradic
#05102D #2D0524 #2D2205 #052D0E
square
#05102D #2D0524 #2D2205 #052D0E
split-complementary
#05102D #2D0E05 #242D05
monochromatic
#030A1C #030A1C #05102D #0B2464 #11379B

Accessibility & contrast

On white

18.78
#05102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05102D
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05102D#FFFFFF#000000##FFFFFF
##05102D1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #05102d;
/* rgb */ color: rgb(5, 16, 45);
/* oklch */ color: oklch(18.4% 0.061 264.3);
Tailwind
colors: {
  custom: {
    50: '#4a4e66',
    500: '#05102d',
    950: '#000000',
  },
}
SCSS
$custom: #05102d;
$custom-light: #4a4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#05102d",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 223.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18369,
    "c": 0.06105,
    "h": 264.3
  },
  "luminance": 0.00592
}

Semantic roles & 50–950 ramp

primary
#05102D
secondary
#6F591F
accent
#C031F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05102D

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

Preview Lab → · Contrast checker → · Palette generator →

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