#12408F#12408F

#12408F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.140 H 260.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#12408F
RGBrgb(18, 64, 143)
HSLhsl(218, 78%, 32%)
HSVhsv(218, 87%, 56%)
CMYKcmyk(87.4%, 55.2%, 0%, 43.9%)
CIE-LABlab(28.84, 16.68, -47.91)
CIE-LCHlch(28.84, 50.72, 289.19°)
OKLaboklab(39.22% -0.0228 -0.1383)
OKLCHoklch(39.22% 0.14 260.6)
XYZxyz(7.0390, 5.7777, 26.7255)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12408F #8F6112
analogous
#127F8F #12408F #23128F
triadic
#12408F #8F1240 #408F12
tetradic
#12408F #8F127F #8F6112 #128F23
square
#12408F #8F127F #8F6112 #128F23
split-complementary
#12408F #8F2312 #7F8F12
monochromatic
#040F22 #0B2859 #12408F #1958C5 #3676E6

Accessibility & contrast

On white

9.74
#12408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#12408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12408F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12408F#FFFFFF#000000##FFFFFF
##12408F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #12408f;
/* rgb */ color: rgb(18, 64, 143);
/* oklch */ color: oklch(39.2% 0.140 260.6);
Tailwind
colors: {
  custom: {
    50: '#6974b0',
    500: '#12408f',
    950: '#000000',
  },
}
SCSS
$custom: #12408f;
$custom-light: #6974b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12408f",
  "rgb": {
    "r": 18,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 217.92,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39223,
    "c": 0.14016,
    "h": 260.6
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#12408F
secondary
#C3913A
accent
#AD34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070811
muted
#7A7B80

Preview Lab

Preview with #12408F

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

Preview Lab → · Contrast checker → · Palette generator →

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