#12337D#12337D

#12337D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.8% C 0.132 H 263.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#12337D
RGBrgb(18, 51, 125)
HSLhsl(221, 75%, 28%)
HSVhsv(221, 86%, 49%)
CMYKcmyk(85.6%, 59.2%, 0%, 51%)
CIE-LABlab(23.59, 18.34, -45.23)
CIE-LCHlch(23.59, 48.80, 292.08°)
OKLaboklab(34.79% -0.0157 -0.1307)
OKLCHoklch(34.79% 0.132 263.1)
XYZxyz(5.1336, 3.9763, 19.8950)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12337D #7D5C12
analogous
#12687D #12337D #26127D
triadic
#12337D #7D1233 #337D12
tetradic
#12337D #7D1268 #7D5C12 #127D26
square
#12337D #7D1268 #7D5C12 #127D26
split-complementary
#12337D #7D2612 #687D12
monochromatic
#040B1B #0A1D48 #12337D #1A49B2 #2962E0

Accessibility & contrast

On white

11.70
#12337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#12337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12337D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12337D#FFFFFF#000000##FFFFFF
##12337D1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12337d;
/* rgb */ color: rgb(18, 51, 125);
/* oklch */ color: oklch(34.8% 0.132 263.1);
Tailwind
colors: {
  custom: {
    50: '#656aa3',
    500: '#12337d',
    950: '#000000',
  },
}
SCSS
$custom: #12337d;
$custom-light: #656aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#12337d",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 221.495,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.13163,
    "h": 263.1
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#12337D
secondary
#B38D38
accent
#B836F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12337D

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

Preview Lab → · Contrast checker → · Palette generator →

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