#12418A#12418A

#12418A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.132 H 259.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#12418A
RGBrgb(18, 65, 138)
HSLhsl(217, 77%, 31%)
HSVhsv(217, 87%, 54%)
CMYKcmyk(87%, 52.9%, 0%, 45.9%)
CIE-LABlab(28.76, 13.90, -44.97)
CIE-LCHlch(28.76, 47.06, 287.17°)
OKLaboklab(39.03% -0.0241 -0.1296)
OKLCHoklch(39.03% 0.132 259.5)
XYZxyz(6.7255, 5.7433, 24.7939)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12418A #8A5B12
analogous
#127D8A #12418A #1F128A
triadic
#12418A #8A1241 #418A12
tetradic
#12418A #8A127D #8A5B12 #128A1F
square
#12418A #8A127D #8A5B12 #128A1F
split-complementary
#12418A #8A1F12 #7D8A12
monochromatic
#040E1E #0B2754 #12418A #195AC0 #3278E4

Accessibility & contrast

On white

9.77
#12418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#12418A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12418A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12418A#FFFFFF#000000##FFFFFF
##12418A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #12418a;
/* rgb */ color: rgb(18, 65, 138);
/* oklch */ color: oklch(39.0% 0.132 259.5);
Tailwind
colors: {
  custom: {
    50: '#6874ad',
    500: '#12418a',
    950: '#000000',
  },
}
SCSS
$custom: #12418a;
$custom-light: #6874ad;
$custom-dark: #000000;
JSON
{
  "hex": "#12418a",
  "rgb": {
    "r": 18,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 216.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39034,
    "c": 0.13185,
    "h": 259.5
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#12418A
secondary
#BF8A39
accent
#A934F3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12418A

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

Preview Lab → · Contrast checker → · Palette generator →

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