#08123F#08123F

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

Color values

HEX#08123F
RGBrgb(8, 18, 63)
HSLhsl(229, 77%, 14%)
HSVhsv(229, 87%, 25%)
CMYKcmyk(87.3%, 71.4%, 0%, 75.3%)
CIE-LABlab(7.61, 15.07, -29.94)
CIE-LCHlch(7.61, 33.52, 296.71°)
OKLaboklab(20.94% -0.0031 -0.0866)
OKLCHoklch(20.94% 0.087 268)
XYZxyz(1.2133, 0.8430, 4.8004)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123F #3F3508
analogous
#082E3F #08123F #1A083F
triadic
#08123F #3F0812 #123F08
tetradic
#08123F #3F082E #3F3508 #083F1A
square
#08123F #3F082E #3F3508 #083F1A
split-complementary
#08123F #3F1A08 #2E3F08
monochromatic
#03081B #03081B #08123F #0F2275 #1631AC

Accessibility & contrast

On white

17.97
#08123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08123F
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123F#FFFFFF#000000##FFFFFF
##08123F1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #08123f;
/* rgb */ color: rgb(8, 18, 63);
/* oklch */ color: oklch(20.9% 0.087 268.0);
Tailwind
colors: {
  custom: {
    50: '#524f75',
    500: '#08123f',
    950: '#000000',
  },
}
SCSS
$custom: #08123f;
$custom-light: #524f75;
$custom-dark: #000000;
JSON
{
  "hex": "#08123f",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 229.091,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20938,
    "c": 0.08666,
    "h": 268
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#08123F
secondary
#7E6D25
accent
#D134F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #08123F

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

Preview Lab → · Contrast checker → · Palette generator →

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