#08012F#08012F

#08012F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.2% C 0.088 H 278.7°. Best body text is #FFFFFF at 19.89:1 contrast (WCAG AA passes).

Color values

HEX#08012F
RGBrgb(8, 1, 47)
HSLhsl(249, 96%, 9%)
HSVhsv(249, 98%, 18%)
CMYKcmyk(83%, 97.9%, 0%, 81.6%)
CIE-LABlab(2.52, 14.71, -26.47)
CIE-LCHlch(2.52, 30.28, 299.07°)
OKLaboklab(15.15% 0.0133 -0.0873)
OKLCHoklch(15.15% 0.088 278.7)
XYZxyz(0.6239, 0.2785, 2.7097)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08012F #282F01
analogous
#01112F #08012F #1F012F
triadic
#08012F #2F0801 #012F08
tetradic
#08012F #2F0111 #282F01 #012F1F
square
#08012F #2F0111 #282F01 #012F1F
split-complementary
#08012F #2F1F01 #112F01
monochromatic
#05011E #05011E #08012F #12026B #1C04A7

Accessibility & contrast

On white

19.89
#08012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#08012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08012F
19.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08012F#FFFFFF#000000##FFFFFF
##08012F1.0019.891.0619.89
#FFFFFF19.891.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B30
Deuteranopia (green-blind)
#00072E
Tritanopia (blue-blind)
#000E18
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #08012f;
/* rgb */ color: rgb(8, 1, 47);
/* oklch */ color: oklch(15.2% 0.088 278.7);
Tailwind
colors: {
  custom: {
    50: '#4c4768',
    500: '#08012f',
    950: '#000000',
  },
}
SCSS
$custom: #08012f;
$custom-light: #4c4768;
$custom-dark: #000000;
JSON
{
  "hex": "#08012f",
  "rgb": {
    "r": 8,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 249.13,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15152,
    "c": 0.08831,
    "h": 278.7
  },
  "luminance": 0.00279
}

Semantic roles & 50–950 ramp

primary
#08012F
secondary
#677517
accent
#FF29DE
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #08012F

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

Preview Lab → · Contrast checker → · Palette generator →

#08012F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva