#12317D#12317D

#12317D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.134 H 263.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#12317D
RGBrgb(18, 49, 125)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 49%)
CMYKcmyk(85.6%, 60.8%, 0%, 51%)
CIE-LABlab(23.02, 19.77, -46.17)
CIE-LCHlch(23.02, 50.22, 293.18°)
OKLaboklab(34.36% -0.0144 -0.1335)
OKLCHoklch(34.36% 0.134 263.8)
XYZxyz(5.0481, 3.8053, 19.8665)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12317D #7D5E12
analogous
#12667D #12317D #29127D
triadic
#12317D #7D1231 #317D12
tetradic
#12317D #7D1266 #7D5E12 #127D29
square
#12317D #7D1266 #7D5E12 #127D29
split-complementary
#12317D #7D2912 #667D12
monochromatic
#040A1B #0A1C48 #12317D #1A46B2 #295EE0

Accessibility & contrast

On white

11.92
#12317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#12317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12317D
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12317D#FFFFFF#000000##FFFFFF
##12317D1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #12317d;
/* rgb */ color: rgb(18, 49, 125);
/* oklch */ color: oklch(34.4% 0.134 263.8);
Tailwind
colors: {
  custom: {
    50: '#6568a3',
    500: '#12317d',
    950: '#000000',
  },
}
SCSS
$custom: #12317d;
$custom-light: #6568a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12317d",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 222.617,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34356,
    "c": 0.13425,
    "h": 263.8
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#12317D
secondary
#B38F38
accent
#BB36F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12317D

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

Preview Lab → · Contrast checker → · Palette generator →

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