#12478C#12478C

#12478C is a dark, vivid cyan. Relative luminance 0.065; OKLCH L 40.6% C 0.127 H 257.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#12478C
RGBrgb(18, 71, 140)
HSLhsl(214, 77%, 31%)
HSVhsv(214, 87%, 55%)
CMYKcmyk(87.1%, 49.3%, 0%, 45.1%)
CIE-LABlab(30.71, 10.58, -43.05)
CIE-LCHlch(30.71, 44.33, 283.81°)
OKLaboklab(40.58% -0.0282 -0.1238)
OKLCHoklch(40.58% 0.127 257.2)
XYZxyz(7.2346, 6.5276, 25.6845)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12478C #8C5712
analogous
#12848C #12478C #1A128C
triadic
#12478C #8C1247 #478C12
tetradic
#12478C #8C1284 #8C5712 #128C1A
square
#12478C #8C1284 #8C5712 #128C1A
split-complementary
#12478C #8C1A12 #848C12
monochromatic
#041020 #0B2B56 #12478C #1963C2 #3481E5

Accessibility & contrast

On white

9.11
#12478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#12478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12478C
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12478C#FFFFFF#000000##FFFFFF
##12478C1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8F
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #12478c;
/* rgb */ color: rgb(18, 71, 140);
/* oklch */ color: oklch(40.6% 0.127 257.2);
Tailwind
colors: {
  custom: {
    50: '#6879ae',
    500: '#12478c',
    950: '#000000',
  },
}
SCSS
$custom: #12478c;
$custom-light: #6879ae;
$custom-dark: #000000;
JSON
{
  "hex": "#12478c",
  "rgb": {
    "r": 18,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 213.934,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40578,
    "c": 0.12703,
    "h": 257.2
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#12478C
secondary
#C08639
accent
#A034F4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #12478C

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

Preview Lab → · Contrast checker → · Palette generator →

#12478C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva