#12178F#12178F

#12178F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.186 H 268.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#12178F
RGBrgb(18, 23, 143)
HSLhsl(238, 78%, 32%)
HSVhsv(238, 87%, 56%)
CMYKcmyk(87.4%, 83.9%, 0%, 43.9%)
CIE-LABlab(18.90, 43.10, -64.25)
CIE-LCHlch(18.90, 77.36, 303.85°)
OKLaboklab(31.95% -0.0063 -0.1861)
OKLCHoklch(31.95% 0.186 268.1)
XYZxyz(5.5121, 2.7239, 26.2165)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12178F #8F8A12
analogous
#12568F #12178F #4C128F
triadic
#12178F #8F1217 #178F12
tetradic
#12178F #8F1256 #8F8A12 #128F4C
square
#12178F #8F1256 #8F8A12 #128F4C
split-complementary
#12178F #8F4C12 #568F12
monochromatic
#040622 #0B0E59 #12178F #1920C5 #363DE6

Accessibility & contrast

On white

13.59
#12178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#12178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12178F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12178F#FFFFFF#000000##FFFFFF
##12178F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12178f;
/* rgb */ color: rgb(18, 23, 143);
/* oklch */ color: oklch(32.0% 0.186 268.1);
Tailwind
colors: {
  custom: {
    50: '#6d57b1',
    500: '#12178f',
    950: '#000000',
  },
}
SCSS
$custom: #12178f;
$custom-light: #6d57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12178f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 237.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31951,
    "c": 0.18619,
    "h": 268.1
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#12178F
secondary
#C3BE3A
accent
#EC34F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12178F

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

Preview Lab → · Contrast checker → · Palette generator →

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