#12317E#12317E

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

Color values

HEX#12317E
RGBrgb(18, 49, 126)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 49%)
CMYKcmyk(85.7%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.10, 20.18, -46.65)
CIE-LCHlch(23.10, 50.83, 293.40°)
OKLaboklab(34.45% -0.0144 -0.1349)
OKLCHoklch(34.45% 0.136 263.9)
XYZxyz(5.1123, 3.8310, 20.2046)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12317E #7E5F12
analogous
#12677E #12317E #29127E
triadic
#12317E #7E1231 #317E12
tetradic
#12317E #7E1267 #7E5F12 #127E29
square
#12317E #7E1267 #7E5F12 #127E29
split-complementary
#12317E #7E2912 #677E12
monochromatic
#040A1B #0A1C48 #12317E #1A46B4 #2A5EE1

Accessibility & contrast

On white

11.89
#12317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#12317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12317E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12317E#FFFFFF#000000##FFFFFF
##12317E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #12317e;
/* rgb */ color: rgb(18, 49, 126);
/* oklch */ color: oklch(34.4% 0.136 263.9);
Tailwind
colors: {
  custom: {
    50: '#6568a4',
    500: '#12317e',
    950: '#000000',
  },
}
SCSS
$custom: #12317e;
$custom-light: #6568a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12317e",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 222.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34449,
    "c": 0.13568,
    "h": 263.9
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#12317E
secondary
#B49038
accent
#BC36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12317E

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

Preview Lab → · Contrast checker → · Palette generator →

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