#08123D#08123D

#08123D is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.083 H 267.9°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#08123D
RGBrgb(8, 18, 61)
HSLhsl(229, 77%, 14%)
HSVhsv(229, 87%, 24%)
CMYKcmyk(86.9%, 70.5%, 0%, 76.1%)
CIE-LABlab(7.42, 14.14, -28.83)
CIE-LCHlch(7.42, 32.11, 296.12°)
OKLaboklab(20.72% -0.003 -0.0834)
OKLCHoklch(20.72% 0.083 267.9)
XYZxyz(1.1585, 0.8210, 4.5114)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123D #3D3308
analogous
#082C3D #08123D #18083D
triadic
#08123D #3D0812 #123D08
tetradic
#08123D #3D082C #3D3308 #083D18
square
#08123D #3D082C #3D3308 #083D18
split-complementary
#08123D #3D1808 #2C3D08
monochromatic
#04081B #04081B #08123D #0F2273 #1632A9

Accessibility & contrast

On white

18.04
#08123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08123D
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123D#FFFFFF#000000##FFFFFF
##08123D1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#00143C
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #08123d;
/* rgb */ color: rgb(8, 18, 61);
/* oklch */ color: oklch(20.7% 0.083 267.9);
Tailwind
colors: {
  custom: {
    50: '#514f73',
    500: '#08123d',
    950: '#000000',
  },
}
SCSS
$custom: #08123d;
$custom-light: #514f73;
$custom-dark: #000000;
JSON
{
  "hex": "#08123d",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 228.679,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20721,
    "c": 0.08346,
    "h": 267.9
  },
  "luminance": 0.00821
}

Semantic roles & 50–950 ramp

primary
#08123D
secondary
#7C6B25
accent
#CF34F3
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #08123D

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

Preview Lab → · Contrast checker → · Palette generator →

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