#12315C#12315C

#12315C is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.6% C 0.085 H 257.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#12315C
RGBrgb(18, 49, 92)
HSLhsl(215, 67%, 22%)
HSVhsv(215, 80%, 36%)
CMYKcmyk(80.4%, 46.7%, 0%, 63.9%)
CIE-LABlab(20.43, 5.74, -29.04)
CIE-LCHlch(20.43, 29.60, 281.17°)
OKLaboklab(31.57% -0.0187 -0.0831)
OKLCHoklch(31.57% 0.085 257.3)
XYZxyz(3.2788, 3.0976, 10.5482)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315C #5C3D12
analogous
#12565C #12315C #18125C
triadic
#12315C #5C1231 #315C12
tetradic
#12315C #5C1256 #5C3D12 #125C18
square
#12315C #5C1256 #5C3D12 #125C18
split-complementary
#12315C #5C1812 #565C12
monochromatic
#050E1A #081629 #12315C #1C4C8F #2668C2

Accessibility & contrast

On white

12.97
#12315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12315C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315C#FFFFFF#000000##FFFFFF
##12315C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12315c;
/* rgb */ color: rgb(18, 49, 92);
/* oklch */ color: oklch(31.6% 0.085 257.3);
Tailwind
colors: {
  custom: {
    50: '#5c688a',
    500: '#12315c',
    950: '#000000',
  },
}
SCSS
$custom: #12315c;
$custom-light: #5c688a;
$custom-dark: #000000;
JSON
{
  "hex": "#12315c",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 214.865,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.08521,
    "h": 257.3
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#12315C
secondary
#946D35
accent
#A23EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #12315C

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

Preview Lab → · Contrast checker → · Palette generator →

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