#12317C#12317C

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

Color values

HEX#12317C
RGBrgb(18, 49, 124)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 85%, 49%)
CMYKcmyk(85.5%, 60.5%, 0%, 51.4%)
CIE-LABlab(22.93, 19.35, -45.67)
CIE-LCHlch(22.93, 49.61, 292.96°)
OKLaboklab(34.26% -0.0144 -0.132)
OKLCHoklch(34.26% 0.133 263.8)
XYZxyz(4.9846, 3.7799, 19.5317)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12317C #7C5D12
analogous
#12667C #12317C #28127C
triadic
#12317C #7C1231 #317C12
tetradic
#12317C #7C1266 #7C5D12 #127C28
square
#12317C #7C1266 #7C5D12 #127C28
split-complementary
#12317C #7C2812 #667C12
monochromatic
#040B1B #0A1C47 #12317C #1A46B1 #295EE0

Accessibility & contrast

On white

11.96
#12317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12317C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12317C#FFFFFF#000000##FFFFFF
##12317C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12317c;
/* rgb */ color: rgb(18, 49, 124);
/* oklch */ color: oklch(34.3% 0.133 263.8);
Tailwind
colors: {
  custom: {
    50: '#6568a3',
    500: '#12317c',
    950: '#000000',
  },
}
SCSS
$custom: #12317c;
$custom-light: #6568a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12317c",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 222.453,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34264,
    "c": 0.13283,
    "h": 263.8
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#12317C
secondary
#B28E38
accent
#BB37F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12317C

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

Preview Lab → · Contrast checker → · Palette generator →

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