#08123A#08123A

#08123A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.079 H 267.8°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#08123A
RGBrgb(8, 18, 58)
HSLhsl(228, 76%, 13%)
HSVhsv(228, 86%, 23%)
CMYKcmyk(86.2%, 69%, 0%, 77.3%)
CIE-LABlab(7.13, 12.70, -27.14)
CIE-LCHlch(7.13, 29.96, 295.07°)
OKLaboklab(20.4% -0.003 -0.0785)
OKLCHoklch(20.4% 0.079 267.8)
XYZxyz(1.0799, 0.7896, 4.0977)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123A #3A3008
analogous
#082B3A #08123A #17083A
triadic
#08123A #3A0812 #123A08
tetradic
#08123A #3A082B #3A3008 #083A17
square
#08123A #3A082B #3A3008 #083A17
split-complementary
#08123A #3A1708 #2B3A08
monochromatic
#04081B #04081B #08123A #0F2370 #1733A6

Accessibility & contrast

On white

18.13
#08123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#08123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08123A
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123A#FFFFFF#000000##FFFFFF
##08123A1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #08123a;
/* rgb */ color: rgb(8, 18, 58);
/* oklch */ color: oklch(20.4% 0.079 267.8);
Tailwind
colors: {
  custom: {
    50: '#504f71',
    500: '#08123a',
    950: '#000000',
  },
}
SCSS
$custom: #08123a;
$custom-light: #504f71;
$custom-dark: #000000;
JSON
{
  "hex": "#08123a",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 228,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20402,
    "c": 0.07859,
    "h": 267.8
  },
  "luminance": 0.0079
}

Semantic roles & 50–950 ramp

primary
#08123A
secondary
#796825
accent
#CD35F2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #08123A

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

Preview Lab → · Contrast checker → · Palette generator →

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