#12428E#12428E

#12428E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.136 H 259.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#12428E
RGBrgb(18, 66, 142)
HSLhsl(217, 78%, 31%)
HSVhsv(217, 87%, 56%)
CMYKcmyk(87.3%, 53.5%, 0%, 44.3%)
CIE-LABlab(29.35, 14.87, -46.46)
CIE-LCHlch(29.35, 48.78, 287.75°)
OKLaboklab(39.59% -0.0243 -0.134)
OKLCHoklch(39.59% 0.136 259.7)
XYZxyz(7.0784, 5.9771, 26.3666)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12428E #8E5E12
analogous
#12808E #12428E #20128E
triadic
#12428E #8E1242 #428E12
tetradic
#12428E #8E1280 #8E5E12 #128E20
square
#12428E #8E1280 #8E5E12 #128E20
split-complementary
#12428E #8E2012 #808E12
monochromatic
#041021 #0B2958 #12428E #195BC4 #3579E5

Accessibility & contrast

On white

9.56
#12428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#12428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12428E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12428E#FFFFFF#000000##FFFFFF
##12428E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #12428e;
/* rgb */ color: rgb(18, 66, 142);
/* oklch */ color: oklch(39.6% 0.136 259.7);
Tailwind
colors: {
  custom: {
    50: '#6975b0',
    500: '#12428e',
    950: '#000000',
  },
}
SCSS
$custom: #12428e;
$custom-light: #6975b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12428e",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 216.774,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39588,
    "c": 0.13619,
    "h": 259.7
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#12428E
secondary
#C28D3A
accent
#AA34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12428E

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

Preview Lab → · Contrast checker → · Palette generator →

#12428E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva