#12418F#12418F

#12418F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.139 H 260.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#12418F
RGBrgb(18, 65, 143)
HSLhsl(217, 78%, 32%)
HSVhsv(217, 87%, 56%)
CMYKcmyk(87.4%, 54.5%, 0%, 43.9%)
CIE-LABlab(29.14, 15.98, -47.43)
CIE-LCHlch(29.14, 50.05, 288.62°)
OKLaboklab(39.45% -0.0234 -0.1369)
OKLCHoklch(39.45% 0.139 260.3)
XYZxyz(7.0959, 5.8915, 26.7444)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12418F #8F6012
analogous
#12808F #12418F #22128F
triadic
#12418F #8F1241 #418F12
tetradic
#12418F #8F1280 #8F6012 #128F22
square
#12418F #8F1280 #8F6012 #128F22
split-complementary
#12418F #8F2212 #808F12
monochromatic
#041022 #0B2859 #12418F #195AC5 #3678E6

Accessibility & contrast

On white

9.64
#12418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#12418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12418F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12418F#FFFFFF#000000##FFFFFF
##12418F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014B92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #12418f;
/* rgb */ color: rgb(18, 65, 143);
/* oklch */ color: oklch(39.4% 0.139 260.3);
Tailwind
colors: {
  custom: {
    50: '#6974b0',
    500: '#12418f',
    950: '#000000',
  },
}
SCSS
$custom: #12418f;
$custom-light: #6974b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12418f",
  "rgb": {
    "r": 18,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 217.44,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39446,
    "c": 0.13887,
    "h": 260.3
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#12418F
secondary
#C38F3A
accent
#AC34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070811
muted
#7A7B80

Preview Lab

Preview with #12418F

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

Preview Lab → · Contrast checker → · Palette generator →

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