#12417F#12417F

#12417F is a dark, moderate cyan. Relative luminance 0.054; OKLCH L 38.2% C 0.116 H 257.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#12417F
RGBrgb(18, 65, 127)
HSLhsl(214, 75%, 28%)
HSVhsv(214, 86%, 50%)
CMYKcmyk(85.8%, 48.8%, 0%, 50.2%)
CIE-LABlab(27.96, 9.28, -39.42)
CIE-LCHlch(27.96, 40.50, 283.25°)
OKLaboklab(38.17% -0.0258 -0.1133)
OKLCHoklch(38.17% 0.116 257.1)
XYZxyz(5.9691, 5.4408, 20.8101)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12417F #7F5012
analogous
#12777F #12417F #19127F
triadic
#12417F #7F1241 #417F12
tetradic
#12417F #7F1277 #7F5012 #127F19
square
#12417F #7F1277 #7F5012 #127F19
split-complementary
#12417F #7F1912 #777F12
monochromatic
#040E1B #0A2649 #12417F #1A5CB5 #2B79E1

Accessibility & contrast

On white

10.06
#12417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#12417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12417F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12417F#FFFFFF#000000##FFFFFF
##12417F1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4781
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #12417f;
/* rgb */ color: rgb(18, 65, 127);
/* oklch */ color: oklch(38.2% 0.116 257.1);
Tailwind
colors: {
  custom: {
    50: '#6575a4',
    500: '#12417f',
    950: '#000000',
  },
}
SCSS
$custom: #12417f;
$custom-light: #6575a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12417f",
  "rgb": {
    "r": 18,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 214.128,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38165,
    "c": 0.11622,
    "h": 257.1
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#12417F
secondary
#B57F38
accent
#A136F2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #12417F

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

Preview Lab → · Contrast checker → · Palette generator →

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