#12517F#12517F

#12517F is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.1% C 0.098 H 245.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#12517F
RGBrgb(18, 81, 127)
HSLhsl(205, 75%, 28%)
HSVhsv(205, 86%, 50%)
CMYKcmyk(85.8%, 36.2%, 0%, 50.2%)
CIE-LABlab(33.02, -1.48, -31.34)
CIE-LCHlch(33.02, 31.37, 267.29°)
OKLaboklab(42.11% -0.0399 -0.0892)
OKLCHoklch(42.11% 0.098 245.9)
XYZxyz(7.0212, 7.5449, 21.1608)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12517F #7F4012
analogous
#127F76 #12517F #121B7F
triadic
#12517F #7F1251 #517F12
tetradic
#12517F #76127F #7F4012 #1B7F12
square
#12517F #76127F #7F4012 #1B7F12
split-complementary
#12517F #7F121B #7F7612
monochromatic
#04111B #0A2F49 #12517F #1A73B5 #2B94E1

Accessibility & contrast

On white

8.37
#12517F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#12517F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12517F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12517F#FFFFFF#000000##FFFFFF
##12517F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5381
Deuteranopia (green-blind)
#2B497E
Tritanopia (blue-blind)
#005C62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #12517f;
/* rgb */ color: rgb(18, 81, 127);
/* oklch */ color: oklch(42.1% 0.098 245.9);
Tailwind
colors: {
  custom: {
    50: '#6581a4',
    500: '#12517f',
    950: '#000000',
  },
}
SCSS
$custom: #12517f;
$custom-light: #6581a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12517f",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 127
  },
  "hsl": {
    "h": 205.321,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.09774,
    "h": 245.9
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#12517F
secondary
#B56D38
accent
#8536F2
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#060A0F
muted
#7A7C7F

Preview Lab

Preview with #12517F

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

Preview Lab → · Contrast checker → · Palette generator →

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