#12287E#12287E

#12287E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.147 H 266.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#12287E
RGBrgb(18, 40, 126)
HSLhsl(228, 75%, 28%)
HSVhsv(228, 86%, 49%)
CMYKcmyk(85.7%, 68.3%, 0%, 50.6%)
CIE-LABlab(20.64, 26.52, -50.69)
CIE-LCHlch(20.64, 57.21, 297.62°)
OKLaboklab(32.62% -0.0093 -0.1468)
OKLCHoklch(32.62% 0.147 266.4)
XYZxyz(4.7728, 3.1520, 20.0915)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12287E #7E6812
analogous
#125E7E #12287E #32127E
triadic
#12287E #7E1228 #287E12
tetradic
#12287E #7E125E #7E6812 #127E32
square
#12287E #7E125E #7E6812 #127E32
split-complementary
#12287E #7E3212 #5E7E12
monochromatic
#04081B #0A1748 #12287E #1A39B4 #2A4FE1

Accessibility & contrast

On white

12.88
#12287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#12287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12287E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12287E#FFFFFF#000000##FFFFFF
##12287E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #12287e;
/* rgb */ color: rgb(18, 40, 126);
/* oklch */ color: oklch(32.6% 0.147 266.4);
Tailwind
colors: {
  custom: {
    50: '#6661a4',
    500: '#12287e',
    950: '#000000',
  },
}
SCSS
$custom: #12287e;
$custom-light: #6661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12287e",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 227.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.14713,
    "h": 266.4
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#12287E
secondary
#B49B38
accent
#CB36F2
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #12287E

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

Preview Lab → · Contrast checker → · Palette generator →

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