#12187F#12187F

#12187F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.166 H 268.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#12187F
RGBrgb(18, 24, 127)
HSLhsl(237, 75%, 28%)
HSVhsv(237, 86%, 50%)
CMYKcmyk(85.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.05, 37.13, -57.24)
CIE-LCHlch(17.05, 68.23, 302.97°)
OKLaboklab(30.08% -0.0035 -0.1658)
OKLCHoklch(30.08% 0.166 268.8)
XYZxyz(4.4055, 2.3136, 20.2889)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12187F #7F7912
analogous
#124E7F #12187F #42127F
triadic
#12187F #7F1218 #187F12
tetradic
#12187F #7F124E #7F7912 #127F42
square
#12187F #7F124E #7F7912 #127F42
split-complementary
#12187F #7F4212 #4E7F12
monochromatic
#04051B #0A0E49 #12187F #1A22B5 #2B35E1

Accessibility & contrast

On white

14.36
#12187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12187F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12187F#FFFFFF#000000##FFFFFF
##12187F1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12187f;
/* rgb */ color: rgb(18, 24, 127);
/* oklch */ color: oklch(30.1% 0.166 268.8);
Tailwind
colors: {
  custom: {
    50: '#6857a5',
    500: '#12187f',
    950: '#000000',
  },
}
SCSS
$custom: #12187f;
$custom-light: #6857a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12187f",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 236.697,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30077,
    "c": 0.16589,
    "h": 268.8
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#12187F
secondary
#B5AE38
accent
#E736F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #12187F

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

Preview Lab → · Contrast checker → · Palette generator →

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