#12517E#12517E

#12517E is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.0% C 0.096 H 245.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#12517E
RGBrgb(18, 81, 126)
HSLhsl(205, 75%, 28%)
HSVhsv(205, 86%, 49%)
CMYKcmyk(85.7%, 35.7%, 0%, 50.6%)
CIE-LABlab(32.96, -1.89, -30.81)
CIE-LCHlch(32.96, 30.86, 266.49°)
OKLaboklab(42.05% -0.0402 -0.0877)
OKLCHoklch(42.05% 0.096 245.4)
XYZxyz(6.9563, 7.5189, 20.8193)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12517E #7E3F12
analogous
#127E75 #12517E #121B7E
triadic
#12517E #7E1251 #517E12
tetradic
#12517E #75127E #7E3F12 #1B7E12
square
#12517E #75127E #7E3F12 #1B7E12
split-complementary
#12517E #7E121B #7E7512
monochromatic
#04111B #0A2F48 #12517E #1A73B4 #2A94E1

Accessibility & contrast

On white

8.39
#12517E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#12517E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12517E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12517E#FFFFFF#000000##FFFFFF
##12517E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#005C61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #12517e;
/* rgb */ color: rgb(18, 81, 126);
/* oklch */ color: oklch(42.0% 0.096 245.4);
Tailwind
colors: {
  custom: {
    50: '#6481a3',
    500: '#12517e',
    950: '#000000',
  },
}
SCSS
$custom: #12517e;
$custom-light: #6481a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12517e",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 205,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.09645,
    "h": 245.4
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#12517E
secondary
#B46C38
accent
#8436F2
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#060A0F
muted
#7A7C7F

Preview Lab

Preview with #12517E

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

Preview Lab → · Contrast checker → · Palette generator →

#12517E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva