#12478F#12478F

#12478F is a dark, vivid cyan. Relative luminance 0.066; OKLCH L 40.8% C 0.131 H 257.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#12478F
RGBrgb(18, 71, 143)
HSLhsl(215, 78%, 32%)
HSVhsv(215, 87%, 56%)
CMYKcmyk(87.4%, 50.3%, 0%, 43.9%)
CIE-LABlab(30.92, 11.83, -44.55)
CIE-LCHlch(30.92, 46.09, 284.87°)
OKLaboklab(40.81% -0.0277 -0.1283)
OKLCHoklch(40.81% 0.131 257.8)
XYZxyz(7.4588, 6.6173, 26.8654)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12478F #8F5A12
analogous
#12868F #12478F #1C128F
triadic
#12478F #8F1247 #478F12
tetradic
#12478F #8F1286 #8F5A12 #128F1C
square
#12478F #8F1286 #8F5A12 #128F1C
split-complementary
#12478F #8F1C12 #868F12
monochromatic
#041122 #0B2C59 #12478F #1962C5 #3680E6

Accessibility & contrast

On white

9.04
#12478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#12478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12478F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12478F#FFFFFF#000000##FFFFFF
##12478F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #12478f;
/* rgb */ color: rgb(18, 71, 143);
/* oklch */ color: oklch(40.8% 0.131 257.8);
Tailwind
colors: {
  custom: {
    50: '#6979b0',
    500: '#12478f',
    950: '#000000',
  },
}
SCSS
$custom: #12478f;
$custom-light: #6979b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12478f",
  "rgb": {
    "r": 18,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 214.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4081,
    "c": 0.13122,
    "h": 257.8
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#12478F
secondary
#C3893A
accent
#A334F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #12478F

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

Preview Lab → · Contrast checker → · Palette generator →

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