#05012D#05012D

#05012D is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.5% C 0.087 H 274.5°. Best body text is #FFFFFF at 20.03:1 contrast (WCAG AA passes).

Color values

HEX#05012D
RGBrgb(5, 1, 45)
HSLhsl(245, 96%, 9%)
HSVhsv(245, 98%, 18%)
CMYKcmyk(88.9%, 97.8%, 0%, 82.4%)
CIE-LABlab(2.20, 12.93, -25.47)
CIE-LCHlch(2.20, 28.56, 296.91°)
OKLaboklab(14.48% 0.0069 -0.0865)
OKLCHoklch(14.48% 0.087 274.5)
XYZxyz(0.5469, 0.2434, 2.5003)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05012D #292D01
analogous
#01132D #05012D #1B012D
triadic
#05012D #2D0501 #012D05
tetradic
#05012D #2D0113 #292D01 #012D1B
square
#05012D #2D0113 #292D01 #012D1B
split-complementary
#05012D #2D1B01 #132D01
monochromatic
#03011E #03011E #05012D #0C0269 #1204A5

Accessibility & contrast

On white

20.03
#05012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05012D
20.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05012D#FFFFFF#000000##FFFFFF
##05012D1.0020.031.0520.03
#FFFFFF20.031.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2E
Deuteranopia (green-blind)
#00062C
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #05012d;
/* rgb */ color: rgb(5, 1, 45);
/* oklch */ color: oklch(14.5% 0.087 274.5);
Tailwind
colors: {
  custom: {
    50: '#4a4766',
    500: '#05012d',
    950: '#000000',
  },
}
SCSS
$custom: #05012d;
$custom-light: #4a4766;
$custom-dark: #000000;
JSON
{
  "hex": "#05012d",
  "rgb": {
    "r": 5,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 245.455,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.14478,
    "c": 0.08676,
    "h": 274.5
  },
  "luminance": 0.00243
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #05012D

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

Preview Lab → · Contrast checker → · Palette generator →

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