#12315B#12315B

#12315B is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.5% C 0.084 H 256.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#12315B
RGBrgb(18, 49, 91)
HSLhsl(215, 67%, 21%)
HSVhsv(215, 80%, 36%)
CMYKcmyk(80.2%, 46.2%, 0%, 64.3%)
CIE-LABlab(20.36, 5.31, -28.49)
CIE-LCHlch(20.36, 28.98, 280.56°)
OKLaboklab(31.49% -0.0189 -0.0815)
OKLCHoklch(31.49% 0.084 256.9)
XYZxyz(3.2354, 3.0802, 10.3195)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315B #5B3C12
analogous
#12565B #12315B #18125B
triadic
#12315B #5B1231 #315B12
tetradic
#12315B #5B1256 #5B3C12 #125B18
square
#12315B #5B1256 #5B3C12 #125B18
split-complementary
#12315B #5B1812 #565B12
monochromatic
#050E1A #081528 #12315B #1C4D8E #2668C1

Accessibility & contrast

On white

12.99
#12315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12315B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315B#FFFFFF#000000##FFFFFF
##12315B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C355D
Deuteranopia (green-blind)
#0F2E5A
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12315b;
/* rgb */ color: rgb(18, 49, 91);
/* oklch */ color: oklch(31.5% 0.084 256.9);
Tailwind
colors: {
  custom: {
    50: '#5c688a',
    500: '#12315b',
    950: '#000000',
  },
}
SCSS
$custom: #12315b;
$custom-light: #5c688a;
$custom-dark: #000000;
JSON
{
  "hex": "#12315b",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 214.521,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.08368,
    "h": 256.9
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#12315B
secondary
#936B35
accent
#A13EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #12315B

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

Preview Lab → · Contrast checker → · Palette generator →

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