#12317B#12317B

#12317B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.2% C 0.131 H 263.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#12317B
RGBrgb(18, 49, 123)
HSLhsl(222, 74%, 28%)
HSVhsv(222, 85%, 48%)
CMYKcmyk(85.4%, 60.2%, 0%, 51.8%)
CIE-LABlab(22.84, 18.93, -45.18)
CIE-LCHlch(22.84, 48.99, 292.74°)
OKLaboklab(34.17% -0.0145 -0.1306)
OKLCHoklch(34.17% 0.131 263.7)
XYZxyz(4.9216, 3.7547, 19.2004)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12317B #7B5C12
analogous
#12657B #12317B #28127B
triadic
#12317B #7B1231 #317B12
tetradic
#12317B #7B1265 #7B5C12 #127B28
square
#12317B #7B1265 #7B5C12 #127B28
split-complementary
#12317B #7B2812 #657B12
monochromatic
#040B1B #0A1C46 #12317B #1A46B0 #285EE0

Accessibility & contrast

On white

11.99
#12317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#12317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12317B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12317B#FFFFFF#000000##FFFFFF
##12317B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #12317b;
/* rgb */ color: rgb(18, 49, 123);
/* oklch */ color: oklch(34.2% 0.131 263.7);
Tailwind
colors: {
  custom: {
    50: '#6468a2',
    500: '#12317b',
    950: '#000000',
  },
}
SCSS
$custom: #12317b;
$custom-light: #6468a2;
$custom-dark: #000000;
JSON
{
  "hex": "#12317b",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 222.286,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.1314,
    "h": 263.7
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#12317B
secondary
#B18D38
accent
#BA37F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06060F
muted
#7A7A7F

Preview Lab

Preview with #12317B

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

Preview Lab → · Contrast checker → · Palette generator →

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