#08123E#08123E

#08123E is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.085 H 268.0°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#08123E
RGBrgb(8, 18, 62)
HSLhsl(229, 77%, 14%)
HSVhsv(229, 87%, 24%)
CMYKcmyk(87.1%, 71%, 0%, 75.7%)
CIE-LABlab(7.51, 14.60, -29.39)
CIE-LCHlch(7.51, 32.82, 296.42°)
OKLaboklab(20.83% -0.003 -0.085)
OKLCHoklch(20.83% 0.085 268)
XYZxyz(1.1856, 0.8319, 4.6546)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123E #3E3408
analogous
#082D3E #08123E #19083E
triadic
#08123E #3E0812 #123E08
tetradic
#08123E #3E082D #3E3408 #083E19
square
#08123E #3E082D #3E3408 #083E19
split-complementary
#08123E #3E1908 #2D3E08
monochromatic
#03081B #03081B #08123E #0F2274 #1631AA

Accessibility & contrast

On white

18.00
#08123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#08123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08123E
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123E#FFFFFF#000000##FFFFFF
##08123E1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #08123e;
/* rgb */ color: rgb(8, 18, 62);
/* oklch */ color: oklch(20.8% 0.085 268.0);
Tailwind
colors: {
  custom: {
    50: '#524f74',
    500: '#08123e',
    950: '#000000',
  },
}
SCSS
$custom: #08123e;
$custom-light: #524f74;
$custom-dark: #000000;
JSON
{
  "hex": "#08123e",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 228.889,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20829,
    "c": 0.08507,
    "h": 268
  },
  "luminance": 0.00832
}

Semantic roles & 50–950 ramp

primary
#08123E
secondary
#7D6C25
accent
#D034F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #08123E

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

Preview Lab → · Contrast checker → · Palette generator →

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