#12428A#12428A

#12428A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.3% C 0.131 H 259.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#12428A
RGBrgb(18, 66, 138)
HSLhsl(216, 77%, 31%)
HSVhsv(216, 87%, 54%)
CMYKcmyk(87%, 52.2%, 0%, 45.9%)
CIE-LABlab(29.05, 13.20, -44.48)
CIE-LCHlch(29.05, 46.40, 286.53°)
OKLaboklab(39.26% -0.0248 -0.1282)
OKLCHoklch(39.26% 0.131 259)
XYZxyz(6.7834, 5.8592, 24.8132)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12428A #8A5A12
analogous
#127E8A #12428A #1E128A
triadic
#12428A #8A1242 #428A12
tetradic
#12428A #8A127E #8A5A12 #128A1E
square
#12428A #8A127E #8A5A12 #128A1E
split-complementary
#12428A #8A1E12 #7E8A12
monochromatic
#040E1E #0B2854 #12428A #195CC0 #3279E4

Accessibility & contrast

On white

9.67
#12428A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#12428A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12428A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12428A#FFFFFF#000000##FFFFFF
##12428A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #12428a;
/* rgb */ color: rgb(18, 66, 138);
/* oklch */ color: oklch(39.3% 0.131 259.0);
Tailwind
colors: {
  custom: {
    50: '#6875ad',
    500: '#12428a',
    950: '#000000',
  },
}
SCSS
$custom: #12428a;
$custom-light: #6875ad;
$custom-dark: #000000;
JSON
{
  "hex": "#12428a",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 138
  },
  "hsl": {
    "h": 216,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39263,
    "c": 0.13057,
    "h": 259
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#12428A
secondary
#BF8939
accent
#A734F3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12428A

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

Preview Lab → · Contrast checker → · Palette generator →

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