#12327D#12327D

#12327D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.133 H 263.5°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#12327D
RGBrgb(18, 50, 125)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 86%, 49%)
CMYKcmyk(85.6%, 60%, 0%, 51%)
CIE-LABlab(23.30, 19.06, -45.70)
CIE-LCHlch(23.30, 49.51, 292.64°)
OKLaboklab(34.57% -0.015 -0.1321)
OKLCHoklch(34.57% 0.133 263.5)
XYZxyz(5.0904, 3.8898, 19.8806)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12327D #7D5D12
analogous
#12677D #12327D #27127D
triadic
#12327D #7D1232 #327D12
tetradic
#12327D #7D1267 #7D5D12 #127D27
square
#12327D #7D1267 #7D5D12 #127D27
split-complementary
#12327D #7D2712 #677D12
monochromatic
#040B1B #0A1D48 #12327D #1A47B2 #2960E0

Accessibility & contrast

On white

11.81
#12327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12327D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12327D#FFFFFF#000000##FFFFFF
##12327D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #12327d;
/* rgb */ color: rgb(18, 50, 125);
/* oklch */ color: oklch(34.6% 0.133 263.5);
Tailwind
colors: {
  custom: {
    50: '#6569a3',
    500: '#12327d',
    950: '#000000',
  },
}
SCSS
$custom: #12327d;
$custom-light: #6569a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12327d",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 222.056,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34571,
    "c": 0.13294,
    "h": 263.5
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#12327D
secondary
#B38E38
accent
#B936F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12327D

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

Preview Lab → · Contrast checker → · Palette generator →

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