#12508F#12508F

#12508F is a dark, vivid cyan. Relative luminance 0.078; OKLCH L 42.9% C 0.120 H 253.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#12508F
RGBrgb(18, 80, 143)
HSLhsl(210, 78%, 32%)
HSVhsv(210, 87%, 56%)
CMYKcmyk(87.4%, 44.1%, 0%, 43.9%)
CIE-LABlab(33.66, 5.73, -40.13)
CIE-LCHlch(33.66, 40.54, 278.12°)
OKLaboklab(42.93% -0.0348 -0.1151)
OKLCHoklch(42.93% 0.12 253.2)
XYZxyz(8.0742, 7.8481, 27.0705)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12508F #8F5112
analogous
#128F8F #12508F #13128F
triadic
#12508F #8F1250 #508F12
tetradic
#12508F #8F128F #8F5112 #128F13
square
#12508F #8F128F #8F5112 #128F13
split-complementary
#12508F #8F1312 #8F8F12
monochromatic
#041322 #0B3259 #12508F #196EC5 #368DE6

Accessibility & contrast

On white

8.17
#12508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#12508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12508F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12508F#FFFFFF#000000##FFFFFF
##12508F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#174A8E
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #12508f;
/* rgb */ color: rgb(18, 80, 143);
/* oklch */ color: oklch(42.9% 0.120 253.2);
Tailwind
colors: {
  custom: {
    50: '#6880b0',
    500: '#12508f',
    950: '#000000',
  },
}
SCSS
$custom: #12508f;
$custom-light: #6880b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12508f",
  "rgb": {
    "r": 18,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 210.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42933,
    "c": 0.12021,
    "h": 253.2
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#12508F
secondary
#C37F3A
accent
#9534F4
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #12508F

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

Preview Lab → · Contrast checker → · Palette generator →

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