#12327E#12327E

#12327E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.134 H 263.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#12327E
RGBrgb(18, 50, 126)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 86%, 49%)
CMYKcmyk(85.7%, 60.3%, 0%, 50.6%)
CIE-LABlab(23.39, 19.47, -46.19)
CIE-LCHlch(23.39, 50.13, 292.86°)
OKLaboklab(34.66% -0.015 -0.1335)
OKLCHoklch(34.66% 0.134 263.6)
XYZxyz(5.1546, 3.9155, 20.2187)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12327E #7E5E12
analogous
#12687E #12327E #28127E
triadic
#12327E #7E1232 #327E12
tetradic
#12327E #7E1268 #7E5E12 #127E28
square
#12327E #7E1268 #7E5E12 #127E28
split-complementary
#12327E #7E2812 #687E12
monochromatic
#040B1B #0A1D48 #12327E #1A47B4 #2A60E1

Accessibility & contrast

On white

11.78
#12327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#12327E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12327E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12327E#FFFFFF#000000##FFFFFF
##12327E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #12327e;
/* rgb */ color: rgb(18, 50, 126);
/* oklch */ color: oklch(34.7% 0.134 263.6);
Tailwind
colors: {
  custom: {
    50: '#6569a4',
    500: '#12327e',
    950: '#000000',
  },
}
SCSS
$custom: #12327e;
$custom-light: #6569a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12327e",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 222.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.13437,
    "h": 263.6
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#12327E
secondary
#B48F38
accent
#BA36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12327E

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

Preview Lab → · Contrast checker → · Palette generator →

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