#12428F#12428F

#12428F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.138 H 259.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#12428F
RGBrgb(18, 66, 143)
HSLhsl(217, 78%, 32%)
HSVhsv(217, 87%, 56%)
CMYKcmyk(87.4%, 53.8%, 0%, 43.9%)
CIE-LABlab(29.43, 15.28, -46.95)
CIE-LCHlch(29.43, 49.38, 288.03°)
OKLaboklab(39.67% -0.0241 -0.1355)
OKLCHoklch(39.67% 0.138 259.9)
XYZxyz(7.1538, 6.0073, 26.7638)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12428F #8F5F12
analogous
#12818F #12428F #21128F
triadic
#12428F #8F1242 #428F12
tetradic
#12428F #8F1281 #8F5F12 #128F21
square
#12428F #8F1281 #8F5F12 #128F21
split-complementary
#12428F #8F2112 #818F12
monochromatic
#041022 #0B2959 #12428F #195BC5 #3679E6

Accessibility & contrast

On white

9.54
#12428F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12428F
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12428F#FFFFFF#000000##FFFFFF
##12428F1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #12428f;
/* rgb */ color: rgb(18, 66, 143);
/* oklch */ color: oklch(39.7% 0.138 259.9);
Tailwind
colors: {
  custom: {
    50: '#6975b0',
    500: '#12428f',
    950: '#000000',
  },
}
SCSS
$custom: #12428f;
$custom-light: #6975b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12428f",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 216.96,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3967,
    "c": 0.13759,
    "h": 259.9
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#12428F
secondary
#C38E3A
accent
#AA34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070811
muted
#7A7B80

Preview Lab

Preview with #12428F

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

Preview Lab → · Contrast checker → · Palette generator →

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