#12327B#12327B

#12327B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.130 H 263.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#12327B
RGBrgb(18, 50, 123)
HSLhsl(222, 74%, 28%)
HSVhsv(222, 85%, 48%)
CMYKcmyk(85.4%, 59.3%, 0%, 51.8%)
CIE-LABlab(23.13, 18.22, -44.71)
CIE-LCHlch(23.13, 48.28, 292.17°)
OKLaboklab(34.39% -0.0152 -0.1292)
OKLCHoklch(34.39% 0.13 263.3)
XYZxyz(4.9639, 3.8393, 19.2145)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12327B #7B5B12
analogous
#12677B #12327B #26127B
triadic
#12327B #7B1232 #327B12
tetradic
#12327B #7B1267 #7B5B12 #127B26
square
#12327B #7B1267 #7B5B12 #127B26
split-complementary
#12327B #7B2612 #677B12
monochromatic
#040B1B #0A1C46 #12327B #1A48B0 #2860E0

Accessibility & contrast

On white

11.88
#12327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#12327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12327B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12327B#FFFFFF#000000##FFFFFF
##12327B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #12327b;
/* rgb */ color: rgb(18, 50, 123);
/* oklch */ color: oklch(34.4% 0.130 263.3);
Tailwind
colors: {
  custom: {
    50: '#6469a2',
    500: '#12327b',
    950: '#000000',
  },
}
SCSS
$custom: #12327b;
$custom-light: #6469a2;
$custom-dark: #000000;
JSON
{
  "hex": "#12327b",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 221.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34389,
    "c": 0.13009,
    "h": 263.3
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#12327B
secondary
#B18C38
accent
#B837F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06060F
muted
#7A7A7F

Preview Lab

Preview with #12327B

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

Preview Lab → · Contrast checker → · Palette generator →

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