#12147F#12147F

#12147F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.169 H 269.1°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#12147F
RGBrgb(18, 20, 127)
HSLhsl(239, 75%, 28%)
HSVhsv(239, 86%, 50%)
CMYKcmyk(85.8%, 84.3%, 0%, 50.2%)
CIE-LABlab(16.31, 39.30, -58.48)
CIE-LCHlch(16.31, 70.46, 303.90°)
OKLaboklab(29.56% -0.0027 -0.1693)
OKLCHoklch(29.56% 0.169 269.1)
XYZxyz(4.3291, 2.1607, 20.2635)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12147F #7F7D12
analogous
#124A7F #12147F #46127F
triadic
#12147F #7F1214 #147F12
tetradic
#12147F #7F124A #7F7D12 #127F46
square
#12147F #7F124A #7F7D12 #127F46
split-complementary
#12147F #7F4612 #4A7F12
monochromatic
#04041B #0A0C49 #12147F #1A1CB5 #2B2EE1

Accessibility & contrast

On white

14.66
#12147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12147F
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12147F#FFFFFF#000000##FFFFFF
##12147F1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12147f;
/* rgb */ color: rgb(18, 20, 127);
/* oklch */ color: oklch(29.6% 0.169 269.1);
Tailwind
colors: {
  custom: {
    50: '#6954a5',
    500: '#12147f',
    950: '#000000',
  },
}
SCSS
$custom: #12147f;
$custom-light: #6954a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12147f",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 238.899,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29556,
    "c": 0.16937,
    "h": 269.1
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#12147F
secondary
#B5B238
accent
#EE36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12147F

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

Preview Lab → · Contrast checker → · Palette generator →

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