#08123C#08123C

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

Color values

HEX#08123C
RGBrgb(8, 18, 60)
HSLhsl(228, 76%, 13%)
HSVhsv(228, 87%, 24%)
CMYKcmyk(86.7%, 70%, 0%, 76.5%)
CIE-LABlab(7.32, 13.66, -28.27)
CIE-LCHlch(7.32, 31.40, 295.79°)
OKLaboklab(20.61% -0.003 -0.0818)
OKLCHoklch(20.61% 0.082 267.9)
XYZxyz(1.1318, 0.8104, 4.3709)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08123C #3C3208
analogous
#082C3C #08123C #18083C
triadic
#08123C #3C0812 #123C08
tetradic
#08123C #3C082C #3C3208 #083C18
square
#08123C #3C082C #3C3208 #083C18
split-complementary
#08123C #3C1808 #2C3C08
monochromatic
#04081B #04081B #08123C #0F2272 #1632A8

Accessibility & contrast

On white

18.07
#08123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08123C
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08123C#FFFFFF#000000##FFFFFF
##08123C1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#00143B
Tritanopia (blue-blind)
#001D24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #08123c;
/* rgb */ color: rgb(8, 18, 60);
/* oklch */ color: oklch(20.6% 0.082 267.9);
Tailwind
colors: {
  custom: {
    50: '#514f72',
    500: '#08123c',
    950: '#000000',
  },
}
SCSS
$custom: #08123c;
$custom-light: #514f72;
$custom-dark: #000000;
JSON
{
  "hex": "#08123c",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 228.462,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20614,
    "c": 0.08186,
    "h": 267.9
  },
  "luminance": 0.0081
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #08123C

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

Preview Lab → · Contrast checker → · Palette generator →

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