#08123B#08123B

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

Color values

HEX#08123B
RGBrgb(8, 18, 59)
HSLhsl(228, 76%, 13%)
HSVhsv(228, 86%, 23%)
CMYKcmyk(86.4%, 69.5%, 0%, 76.9%)
CIE-LABlab(7.23, 13.18, -27.71)
CIE-LCHlch(7.23, 30.68, 295.44°)
OKLaboklab(20.51% -0.003 -0.0802)
OKLCHoklch(20.51% 0.08 267.8)
XYZxyz(1.1056, 0.7999, 4.2329)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123B #3B3108
analogous
#082B3B #08123B #17083B
triadic
#08123B #3B0812 #123B08
tetradic
#08123B #3B082B #3B3108 #083B17
square
#08123B #3B082B #3B3108 #083B17
split-complementary
#08123B #3B1708 #2B3B08
monochromatic
#04081B #04081B #08123B #0F2271 #1733A7

Accessibility & contrast

On white

18.10
#08123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08123B
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123B#FFFFFF#000000##FFFFFF
##08123B1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00143A
Tritanopia (blue-blind)
#001C24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #08123b;
/* rgb */ color: rgb(8, 18, 59);
/* oklch */ color: oklch(20.5% 0.080 267.8);
Tailwind
colors: {
  custom: {
    50: '#514f71',
    500: '#08123b',
    950: '#000000',
  },
}
SCSS
$custom: #08123b;
$custom-light: #514f71;
$custom-dark: #000000;
JSON
{
  "hex": "#08123b",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 228.235,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20508,
    "c": 0.08023,
    "h": 267.8
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#08123B
secondary
#7A6925
accent
#CE35F3
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #08123B

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

Preview Lab → · Contrast checker → · Palette generator →

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