#05102A#05102A

#05102A is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.1% C 0.056 H 263.3°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#05102A
RGBrgb(5, 16, 42)
HSLhsl(222, 79%, 9%)
HSVhsv(222, 88%, 16%)
CMYKcmyk(88.1%, 61.9%, 0%, 83.5%)
CIE-LABlab(5.15, 5.08, -18.54)
CIE-LCHlch(5.15, 19.23, 285.31°)
OKLaboklab(18.08% -0.0065 -0.0554)
OKLCHoklch(18.08% 0.056 263.3)
XYZxyz(0.6656, 0.5699, 2.2650)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05102A #2A1F05
analogous
#05232A #05102A #0D052A
triadic
#05102A #2A0510 #102A05
tetradic
#05102A #2A0523 #2A1F05 #052A0D
square
#05102A #2A0523 #2A1F05 #052A0D
split-complementary
#05102A #2A0D05 #232A05
monochromatic
#030A1B #030A1B #05102A #0C2561 #123A97

Accessibility & contrast

On white

18.85
#05102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#05102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05102A
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05102A#FFFFFF#000000##FFFFFF
##05102A1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132B
Deuteranopia (green-blind)
#001029
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #05102a;
/* rgb */ color: rgb(5, 16, 42);
/* oklch */ color: oklch(18.1% 0.056 263.3);
Tailwind
colors: {
  custom: {
    50: '#4a4e63',
    500: '#05102a',
    950: '#000000',
  },
}
SCSS
$custom: #05102a;
$custom-light: #4a4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#05102a",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 222.162,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18081,
    "c": 0.05578,
    "h": 263.3
  },
  "luminance": 0.0057
}

Semantic roles & 50–950 ramp

primary
#05102A
secondary
#6C551F
accent
#BB33F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #05102A

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

Preview Lab → · Contrast checker → · Palette generator →

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