#12408A#12408A

#12408A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.133 H 259.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#12408A
RGBrgb(18, 64, 138)
HSLhsl(217, 77%, 31%)
HSVhsv(217, 87%, 54%)
CMYKcmyk(87%, 53.6%, 0%, 45.9%)
CIE-LABlab(28.46, 14.59, -45.45)
CIE-LCHlch(28.46, 47.73, 287.80°)
OKLaboklab(38.81% -0.0234 -0.1311)
OKLCHoklch(38.81% 0.133 259.9)
XYZxyz(6.6686, 5.6295, 24.7750)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12408A #8A5C12
analogous
#127C8A #12408A #20128A
triadic
#12408A #8A1240 #408A12
tetradic
#12408A #8A127C #8A5C12 #128A20
square
#12408A #8A127C #8A5C12 #128A20
split-complementary
#12408A #8A2012 #7C8A12
monochromatic
#040E1E #0B2754 #12408A #1959C0 #3276E4

Accessibility & contrast

On white

9.88
#12408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#12408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12408A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12408A#FFFFFF#000000##FFFFFF
##12408A1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498D
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #12408a;
/* rgb */ color: rgb(18, 64, 138);
/* oklch */ color: oklch(38.8% 0.133 259.9);
Tailwind
colors: {
  custom: {
    50: '#6874ad',
    500: '#12408a',
    950: '#000000',
  },
}
SCSS
$custom: #12408a;
$custom-light: #6874ad;
$custom-dark: #000000;
JSON
{
  "hex": "#12408a",
  "rgb": {
    "r": 18,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 217,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38807,
    "c": 0.13314,
    "h": 259.9
  },
  "luminance": 0.0563
}

Semantic roles & 50–950 ramp

primary
#12408A
secondary
#BF8B39
accent
#AA34F3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12408A

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

Preview Lab → · Contrast checker → · Palette generator →

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