#12337F#12337F

#12337F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 263.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#12337F
RGBrgb(18, 51, 127)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 86%, 50%)
CMYKcmyk(85.8%, 59.8%, 0%, 50.2%)
CIE-LABlab(23.76, 19.18, -46.21)
CIE-LCHlch(23.76, 50.03, 292.54°)
OKLaboklab(34.97% -0.0156 -0.1336)
OKLCHoklch(34.97% 0.134 263.3)
XYZxyz(5.2627, 4.0279, 20.5747)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12337F #7F5E12
analogous
#12697F #12337F #27127F
triadic
#12337F #7F1233 #337F12
tetradic
#12337F #7F1269 #7F5E12 #127F27
square
#12337F #7F1269 #7F5E12 #127F27
split-complementary
#12337F #7F2712 #697F12
monochromatic
#040B1B #0A1D49 #12337F #1A49B5 #2B62E1

Accessibility & contrast

On white

11.63
#12337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#12337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12337F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12337F#FFFFFF#000000##FFFFFF
##12337F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #12337f;
/* rgb */ color: rgb(18, 51, 127);
/* oklch */ color: oklch(35.0% 0.134 263.3);
Tailwind
colors: {
  custom: {
    50: '#656aa5',
    500: '#12337f',
    950: '#000000',
  },
}
SCSS
$custom: #12337f;
$custom-light: #656aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#12337f",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 221.835,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3497,
    "c": 0.13449,
    "h": 263.3
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#12337F
secondary
#B58F38
accent
#B936F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12337F

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

Preview Lab → · Contrast checker → · Palette generator →

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