#12188F#12188F

#12188F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.185 H 268.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#12188F
RGBrgb(18, 24, 143)
HSLhsl(237, 78%, 32%)
HSVhsv(237, 87%, 56%)
CMYKcmyk(87.4%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.07, 42.59, -63.96)
CIE-LCHlch(19.07, 76.84, 303.66°)
OKLaboklab(32.07% -0.0064 -0.1853)
OKLCHoklch(32.07% 0.185 268)
XYZxyz(5.5323, 2.7644, 26.2233)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12188F #8F8912
analogous
#12578F #12188F #4B128F
triadic
#12188F #8F1218 #188F12
tetradic
#12188F #8F1257 #8F8912 #128F4B
square
#12188F #8F1257 #8F8912 #128F4B
split-complementary
#12188F #8F4B12 #578F12
monochromatic
#040622 #0B0F59 #12188F #1921C5 #363EE6

Accessibility & contrast

On white

13.52
#12188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12188F
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12188F#FFFFFF#000000##FFFFFF
##12188F1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12188f;
/* rgb */ color: rgb(18, 24, 143);
/* oklch */ color: oklch(32.1% 0.185 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d58b1',
    500: '#12188f',
    950: '#000000',
  },
}
SCSS
$custom: #12188f;
$custom-light: #6d58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12188f",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 237.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32071,
    "c": 0.18539,
    "h": 268
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#12188F
secondary
#C3BD3A
accent
#EB34F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12188F

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

Preview Lab → · Contrast checker → · Palette generator →

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