#12286F#12286F

#12286F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.1% C 0.126 H 265.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#12286F
RGBrgb(18, 40, 111)
HSLhsl(226, 72%, 25%)
HSVhsv(226, 84%, 44%)
CMYKcmyk(83.8%, 64%, 0%, 56.5%)
CIE-LABlab(19.20, 20.40, -43.45)
CIE-LCHlch(19.20, 48.00, 295.15°)
OKLaboklab(31.11% -0.009 -0.1257)
OKLCHoklch(31.11% 0.126 265.9)
XYZxyz(3.8765, 2.7934, 15.3707)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12286F #6F5912
analogous
#12576F #12286F #2A126F
triadic
#12286F #6F1228 #286F12
tetradic
#12286F #6F1257 #6F5912 #126F2A
square
#12286F #6F1257 #6F5912 #126F2A
split-complementary
#12286F #6F2A12 #576F12
monochromatic
#04091A #09153A #12286F #1B3BA4 #234ED8

Accessibility & contrast

On white

13.47
#12286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#12286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12286F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12286F#FFFFFF#000000##FFFFFF
##12286F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #12286f;
/* rgb */ color: rgb(18, 40, 111);
/* oklch */ color: oklch(31.1% 0.126 265.9);
Tailwind
colors: {
  custom: {
    50: '#626199',
    500: '#12286f',
    950: '#000000',
  },
}
SCSS
$custom: #12286f;
$custom-light: #626199;
$custom-dark: #000000;
JSON
{
  "hex": "#12286f",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 225.806,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31112,
    "c": 0.126,
    "h": 265.9
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#12286F
secondary
#A68C37
accent
#C439EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #12286F

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

Preview Lab → · Contrast checker → · Palette generator →

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