#05012E#05012E

#05012E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.6% C 0.088 H 274.2°. Best body text is #FFFFFF at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#05012E
RGBrgb(5, 1, 46)
HSLhsl(245, 96%, 9%)
HSVhsv(245, 98%, 18%)
CMYKcmyk(89.1%, 97.8%, 0%, 82%)
CIE-LABlab(2.27, 13.42, -26.12)
CIE-LCHlch(2.27, 29.36, 297.20°)
OKLaboklab(14.64% 0.0065 -0.0879)
OKLCHoklch(14.64% 0.088 274.2)
XYZxyz(0.5664, 0.2512, 2.6029)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05012E #2A2E01
analogous
#01142E #05012E #1C012E
triadic
#05012E #2E0501 #012E05
tetradic
#05012E #2E0114 #2A2E01 #012E1C
square
#05012E #2E0114 #2A2E01 #012E1C
split-complementary
#05012E #2E1C01 #142E01
monochromatic
#03011E #03011E #05012E #0C026A #1204A6

Accessibility & contrast

On white

20.00
#05012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#05012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05012E
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05012E#FFFFFF#000000##FFFFFF
##05012E1.0020.001.0520.00
#FFFFFF20.001.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2F
Deuteranopia (green-blind)
#00062D
Tritanopia (blue-blind)
#000D17
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #05012e;
/* rgb */ color: rgb(5, 1, 46);
/* oklch */ color: oklch(14.6% 0.088 274.2);
Tailwind
colors: {
  custom: {
    50: '#4a4767',
    500: '#05012e',
    950: '#000000',
  },
}
SCSS
$custom: #05012e;
$custom-light: #4a4767;
$custom-dark: #000000;
JSON
{
  "hex": "#05012e",
  "rgb": {
    "r": 5,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 245.333,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.14635,
    "c": 0.08813,
    "h": 274.2
  },
  "luminance": 0.00251
}

Semantic roles & 50–950 ramp

primary
#05012E
secondary
#6C7417
accent
#FF29EC
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #05012E

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

Preview Lab → · Contrast checker → · Palette generator →

#05012E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva