#12296C#12296C

#12296C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.0% C 0.120 H 265.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#12296C
RGBrgb(18, 41, 108)
HSLhsl(225, 71%, 25%)
HSVhsv(225, 83%, 42%)
CMYKcmyk(83.3%, 62%, 0%, 57.6%)
CIE-LABlab(19.21, 18.42, -41.49)
CIE-LCHlch(19.21, 45.39, 293.94°)
OKLaboklab(31.04% -0.0098 -0.1199)
OKLCHoklch(31.04% 0.12 265.3)
XYZxyz(3.7482, 2.7967, 14.5267)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12296C #6C5512
analogous
#12566C #12296C #28126C
triadic
#12296C #6C1229 #296C12
tetradic
#12296C #6C1256 #6C5512 #126C28
square
#12296C #6C1256 #6C5512 #126C28
split-complementary
#12296C #6C2812 #566C12
monochromatic
#040A1A #091538 #12296C #1B3DA0 #2351D5

Accessibility & contrast

On white

13.47
#12296C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#12296C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12296C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12296C#FFFFFF#000000##FFFFFF
##12296C1.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)
#00336E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #12296c;
/* rgb */ color: rgb(18, 41, 108);
/* oklch */ color: oklch(31.0% 0.120 265.3);
Tailwind
colors: {
  custom: {
    50: '#616297',
    500: '#12296c',
    950: '#000000',
  },
}
SCSS
$custom: #12296c;
$custom-light: #616297;
$custom-dark: #000000;
JSON
{
  "hex": "#12296c",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 224.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.12029,
    "h": 265.3
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#12296C
secondary
#A38836
accent
#C03AEE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #12296C

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

Preview Lab → · Contrast checker → · Palette generator →

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