#05012A#05012A

#05012A is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.0% C 0.083 H 275.7°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#05012A
RGBrgb(5, 1, 42)
HSLhsl(246, 95%, 8%)
HSVhsv(246, 98%, 16%)
CMYKcmyk(88.1%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.00, 11.51, -23.50)
CIE-LCHlch(2.00, 26.17, 296.10°)
OKLaboklab(14.01% 0.0082 -0.0822)
OKLCHoklch(14.01% 0.083 275.7)
XYZxyz(0.4912, 0.2211, 2.2068)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05012A #262A01
analogous
#01112A #05012A #19012A
triadic
#05012A #2A0501 #012A05
tetradic
#05012A #2A0111 #262A01 #012A19
square
#05012A #2A0111 #262A01 #012A19
split-complementary
#05012A #2A1901 #112A01
monochromatic
#04011E #04011E #05012A #0C0266 #1304A2

Accessibility & contrast

On white

20.11
#05012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#05012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05012A
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05012A#FFFFFF#000000##FFFFFF
##05012A1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092B
Deuteranopia (green-blind)
#000629
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #05012a;
/* rgb */ color: rgb(5, 1, 42);
/* oklch */ color: oklch(14.0% 0.083 275.7);
Tailwind
colors: {
  custom: {
    50: '#494764',
    500: '#05012a',
    950: '#000000',
  },
}
SCSS
$custom: #05012a;
$custom-light: #494764;
$custom-dark: #000000;
JSON
{
  "hex": "#05012a",
  "rgb": {
    "r": 5,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 245.854,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14007,
    "c": 0.08264,
    "h": 275.7
  },
  "luminance": 0.00221
}

Semantic roles & 50–950 ramp

primary
#05012A
secondary
#687016
accent
#FF29EA
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #05012A

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

Preview Lab → · Contrast checker → · Palette generator →

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