#12286A#12286A

#12286A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.119 H 265.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#12286A
RGBrgb(18, 40, 106)
HSLhsl(225, 71%, 24%)
HSVhsv(225, 83%, 42%)
CMYKcmyk(83%, 62.3%, 0%, 58.4%)
CIE-LABlab(18.74, 18.30, -40.95)
CIE-LCHlch(18.74, 44.86, 294.08°)
OKLaboklab(30.63% -0.0091 -0.1183)
OKLCHoklch(30.63% 0.119 265.6)
XYZxyz(3.6088, 2.6864, 13.9612)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12286A #6A5412
analogous
#12546A #12286A #28126A
triadic
#12286A #6A1228 #286A12
tetradic
#12286A #6A1254 #6A5412 #126A28
square
#12286A #6A1254 #6A5412 #126A28
split-complementary
#12286A #6A2812 #546A12
monochromatic
#040A1A #091436 #12286A #1B3C9E #244FD3

Accessibility & contrast

On white

13.66
#12286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#12286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12286A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12286A#FFFFFF#000000##FFFFFF
##12286A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003944
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12286a;
/* rgb */ color: rgb(18, 40, 106);
/* oklch */ color: oklch(30.6% 0.119 265.6);
Tailwind
colors: {
  custom: {
    50: '#606195',
    500: '#12286a',
    950: '#000000',
  },
}
SCSS
$custom: #12286a;
$custom-light: #606195;
$custom-dark: #000000;
JSON
{
  "hex": "#12286a",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 225,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30631,
    "c": 0.11869,
    "h": 265.6
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#12286A
secondary
#A28736
accent
#C13AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #12286A

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

Preview Lab → · Contrast checker → · Palette generator →

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