#12458E#12458E

#12458E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.3% C 0.132 H 258.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#12458E
RGBrgb(18, 69, 142)
HSLhsl(215, 78%, 31%)
HSVhsv(215, 87%, 56%)
CMYKcmyk(87.3%, 51.4%, 0%, 44.3%)
CIE-LABlab(30.25, 12.79, -45.02)
CIE-LCHlch(30.25, 46.80, 285.86°)
OKLaboklab(40.27% -0.0264 -0.1297)
OKLCHoklch(40.27% 0.132 258.5)
XYZxyz(7.2583, 6.3369, 26.4265)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12458E #8E5B12
analogous
#12838E #12458E #1D128E
triadic
#12458E #8E1245 #458E12
tetradic
#12458E #8E1283 #8E5B12 #128E1D
square
#12458E #8E1283 #8E5B12 #128E1D
split-complementary
#12458E #8E1D12 #838E12
monochromatic
#041021 #0B2B58 #12458E #195FC4 #357EE5

Accessibility & contrast

On white

9.26
#12458E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12458E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12458E#FFFFFF#000000##FFFFFF
##12458E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164D91
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #12458e;
/* rgb */ color: rgb(18, 69, 142);
/* oklch */ color: oklch(40.3% 0.132 258.5);
Tailwind
colors: {
  custom: {
    50: '#6878b0',
    500: '#12458e',
    950: '#000000',
  },
}
SCSS
$custom: #12458e;
$custom-light: #6878b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12458e",
  "rgb": {
    "r": 18,
    "g": 69,
    "b": 142
  },
  "hsl": {
    "h": 215.323,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4027,
    "c": 0.13236,
    "h": 258.5
  },
  "luminance": 0.06338
}

Semantic roles & 50–950 ramp

primary
#12458E
secondary
#C28A3A
accent
#A534F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12458E

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

Preview Lab → · Contrast checker → · Palette generator →

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