#12296F#12296F

#12296F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.3% C 0.125 H 265.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#12296F
RGBrgb(18, 41, 111)
HSLhsl(225, 72%, 25%)
HSVhsv(225, 84%, 44%)
CMYKcmyk(83.8%, 63.1%, 0%, 56.5%)
CIE-LABlab(19.48, 19.68, -42.99)
CIE-LCHlch(19.48, 47.28, 294.59°)
OKLaboklab(31.32% -0.0097 -0.1243)
OKLCHoklch(31.32% 0.125 265.5)
XYZxyz(3.9106, 2.8617, 15.3821)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12296F #6F5812
analogous
#12586F #12296F #29126F
triadic
#12296F #6F1229 #296F12
tetradic
#12296F #6F1258 #6F5812 #126F29
square
#12296F #6F1258 #6F5812 #126F29
split-complementary
#12296F #6F2912 #586F12
monochromatic
#040A1A #09163A #12296F #1B3CA4 #2350D8

Accessibility & contrast

On white

13.36
#12296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#12296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12296F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12296F#FFFFFF#000000##FFFFFF
##12296F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #12296f;
/* rgb */ color: rgb(18, 41, 111);
/* oklch */ color: oklch(31.3% 0.125 265.5);
Tailwind
colors: {
  custom: {
    50: '#626299',
    500: '#12296f',
    950: '#000000',
  },
}
SCSS
$custom: #12296f;
$custom-light: #626299;
$custom-dark: #000000;
JSON
{
  "hex": "#12296f",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 225.161,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31324,
    "c": 0.12468,
    "h": 265.5
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#12296F
secondary
#A68B37
accent
#C239EF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #12296F

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

Preview Lab → · Contrast checker → · Palette generator →

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