#12315D#12315D

#12315D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.087 H 257.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#12315D
RGBrgb(18, 49, 93)
HSLhsl(215, 68%, 22%)
HSVhsv(215, 81%, 36%)
CMYKcmyk(80.6%, 47.3%, 0%, 63.5%)
CIE-LABlab(20.50, 6.16, -29.59)
CIE-LCHlch(20.50, 30.23, 281.77°)
OKLaboklab(31.64% -0.0184 -0.0848)
OKLCHoklch(31.64% 0.087 257.7)
XYZxyz(3.3228, 3.1152, 10.7800)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315D #5D3E12
analogous
#12575D #12315D #19125D
triadic
#12315D #5D1231 #315D12
tetradic
#12315D #5D1257 #5D3E12 #125D19
square
#12315D #5D1257 #5D3E12 #125D19
split-complementary
#12315D #5D1912 #575D12
monochromatic
#050E1A #08162A #12315D #1C4C90 #2667C4

Accessibility & contrast

On white

12.94
#12315D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#12315D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12315D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315D#FFFFFF#000000##FFFFFF
##12315D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B355F
Deuteranopia (green-blind)
#0C2E5C
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12315d;
/* rgb */ color: rgb(18, 49, 93);
/* oklch */ color: oklch(31.6% 0.087 257.7);
Tailwind
colors: {
  custom: {
    50: '#5c688b',
    500: '#12315d',
    950: '#000000',
  },
}
SCSS
$custom: #12315d;
$custom-light: #5c688b;
$custom-dark: #000000;
JSON
{
  "hex": "#12315d",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 215.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.08674,
    "h": 257.7
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#12315D
secondary
#956E35
accent
#A33DEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12315D

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

Preview Lab → · Contrast checker → · Palette generator →

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