#12458F#12458F

#12458F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.4% C 0.134 H 258.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#12458F
RGBrgb(18, 69, 143)
HSLhsl(216, 78%, 32%)
HSVhsv(216, 87%, 56%)
CMYKcmyk(87.4%, 51.7%, 0%, 43.9%)
CIE-LABlab(30.32, 13.21, -45.51)
CIE-LCHlch(30.32, 47.39, 286.18°)
OKLaboklab(40.35% -0.0263 -0.1311)
OKLCHoklch(40.35% 0.134 258.7)
XYZxyz(7.3337, 6.3671, 26.8237)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12458F #8F5C12
analogous
#12848F #12458F #1E128F
triadic
#12458F #8F1245 #458F12
tetradic
#12458F #8F1284 #8F5C12 #128F1E
square
#12458F #8F1284 #8F5C12 #128F1E
split-complementary
#12458F #8F1E12 #848F12
monochromatic
#041122 #0B2B59 #12458F #195FC5 #367EE6

Accessibility & contrast

On white

9.24
#12458F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#12458F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12458F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12458F#FFFFFF#000000##FFFFFF
##12458F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #12458f;
/* rgb */ color: rgb(18, 69, 143);
/* oklch */ color: oklch(40.4% 0.134 258.7);
Tailwind
colors: {
  custom: {
    50: '#6978b0',
    500: '#12458f',
    950: '#000000',
  },
}
SCSS
$custom: #12458f;
$custom-light: #6978b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12458f",
  "rgb": {
    "r": 18,
    "g": 69,
    "b": 143
  },
  "hsl": {
    "h": 215.52,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4035,
    "c": 0.13375,
    "h": 258.7
  },
  "luminance": 0.06368
}

Semantic roles & 50–950 ramp

primary
#12458F
secondary
#C38B3A
accent
#A634F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12458F

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

Preview Lab → · Contrast checker → · Palette generator →

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