#12327F#12327F

#12327F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 263.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#12327F
RGBrgb(18, 50, 127)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 86%, 50%)
CMYKcmyk(85.8%, 60.6%, 0%, 50.2%)
CIE-LABlab(23.48, 19.89, -46.68)
CIE-LCHlch(23.48, 50.74, 293.08°)
OKLaboklab(34.76% -0.0149 -0.135)
OKLCHoklch(34.76% 0.136 263.7)
XYZxyz(5.2195, 3.9415, 20.5602)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12327F #7F5F12
analogous
#12687F #12327F #28127F
triadic
#12327F #7F1232 #327F12
tetradic
#12327F #7F1268 #7F5F12 #127F28
square
#12327F #7F1268 #7F5F12 #127F28
split-complementary
#12327F #7F2812 #687F12
monochromatic
#040B1B #0A1D49 #12327F #1A47B5 #2B60E1

Accessibility & contrast

On white

11.74
#12327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#12327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12327F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12327F#FFFFFF#000000##FFFFFF
##12327F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #12327f;
/* rgb */ color: rgb(18, 50, 127);
/* oklch */ color: oklch(34.8% 0.136 263.7);
Tailwind
colors: {
  custom: {
    50: '#6669a5',
    500: '#12327f',
    950: '#000000',
  },
}
SCSS
$custom: #12327f;
$custom-light: #6669a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12327f",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 222.385,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34755,
    "c": 0.13579,
    "h": 263.7
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#12327F
secondary
#B59038
accent
#BB36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12327F

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

Preview Lab → · Contrast checker → · Palette generator →

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