#12518F#12518F

#12518F is a dark, moderate cyan. Relative luminance 0.080; OKLCH L 43.2% C 0.119 H 252.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#12518F
RGBrgb(18, 81, 143)
HSLhsl(210, 78%, 32%)
HSVhsv(210, 87%, 56%)
CMYKcmyk(87.4%, 43.4%, 0%, 43.9%)
CIE-LABlab(33.97, 5.06, -39.64)
CIE-LCHlch(33.97, 39.96, 277.28°)
OKLaboklab(43.17% -0.0356 -0.1136)
OKLCHoklch(43.17% 0.119 252.6)
XYZxyz(8.1479, 7.9956, 27.0951)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12518F #8F5012
analogous
#128F8F #12518F #12138F
triadic
#12518F #8F1251 #518F12
tetradic
#12518F #8F128F #8F5012 #138F12
square
#12518F #8F128F #8F5012 #138F12
split-complementary
#12518F #8F1213 #8F8F12
monochromatic
#041322 #0B3259 #12518F #1970C5 #368EE6

Accessibility & contrast

On white

8.08
#12518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#12518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12518F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12518F#FFFFFF#000000##FFFFFF
##12518F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#1A4B8E
Tritanopia (blue-blind)
#006069
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #12518f;
/* rgb */ color: rgb(18, 81, 143);
/* oklch */ color: oklch(43.2% 0.119 252.6);
Tailwind
colors: {
  custom: {
    50: '#6881b0',
    500: '#12518f',
    950: '#000000',
  },
}
SCSS
$custom: #12518f;
$custom-light: #6881b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12518f",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 209.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43174,
    "c": 0.11904,
    "h": 252.6
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#12518F
secondary
#C37E3A
accent
#9334F4
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #12518F

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

Preview Lab → · Contrast checker → · Palette generator →

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