#12315A#12315A

#12315A is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.4% C 0.082 H 256.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#12315A
RGBrgb(18, 49, 90)
HSLhsl(214, 67%, 21%)
HSVhsv(214, 80%, 35%)
CMYKcmyk(80%, 45.6%, 0%, 64.7%)
CIE-LABlab(20.29, 4.88, -27.94)
CIE-LCHlch(20.29, 28.36, 279.91°)
OKLaboklab(31.42% -0.0191 -0.0799)
OKLCHoklch(31.42% 0.082 256.5)
XYZxyz(3.1926, 3.0631, 10.0938)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315A #5A3B12
analogous
#12555A #12315A #17125A
triadic
#12315A #5A1231 #315A12
tetradic
#12315A #5A1255 #5A3B12 #125A17
square
#12315A #5A1255 #5A3B12 #125A17
split-complementary
#12315A #5A1712 #555A12
monochromatic
#050E1A #081527 #12315A #1C4D8D #2669C0

Accessibility & contrast

On white

13.02
#12315A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#12315A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12315A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315A#FFFFFF#000000##FFFFFF
##12315A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355C
Deuteranopia (green-blind)
#102E59
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12315a;
/* rgb */ color: rgb(18, 49, 90);
/* oklch */ color: oklch(31.4% 0.082 256.5);
Tailwind
colors: {
  custom: {
    50: '#5b6889',
    500: '#12315a',
    950: '#000000',
  },
}
SCSS
$custom: #12315a;
$custom-light: #5b6889;
$custom-dark: #000000;
JSON
{
  "hex": "#12315a",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 214.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31418,
    "c": 0.08215,
    "h": 256.5
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#12315A
secondary
#936A35
accent
#A03EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #12315A

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

Preview Lab → · Contrast checker → · Palette generator →

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