#12117E#12117E

#12117E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.1% C 0.171 H 269.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#12117E
RGBrgb(18, 17, 126)
HSLhsl(241, 76%, 28%)
HSVhsv(241, 87%, 49%)
CMYKcmyk(85.7%, 86.5%, 0%, 50.6%)
CIE-LABlab(15.67, 40.46, -58.90)
CIE-LCHlch(15.67, 71.46, 304.48°)
OKLaboklab(29.08% -0.0019 -0.1705)
OKLCHoklch(29.08% 0.171 269.4)
XYZxyz(4.2145, 2.0353, 19.9054)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12117E #7D7E11
analogous
#11477E #12117E #48117E
triadic
#12117E #7E1211 #117E12
tetradic
#12117E #7E1147 #7D7E11 #117E48
square
#12117E #7E1147 #7D7E11 #117E48
split-complementary
#12117E #7E4811 #477E11
monochromatic
#04041B #0A0A48 #12117E #1A18B4 #2927E2

Accessibility & contrast

On white

14.92
#12117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12117E
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12117E#FFFFFF#000000##FFFFFF
##12117E1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00217C
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12117e;
/* rgb */ color: rgb(18, 17, 126);
/* oklch */ color: oklch(29.1% 0.171 269.4);
Tailwind
colors: {
  custom: {
    50: '#6953a5',
    500: '#12117e',
    950: '#000000',
  },
}
SCSS
$custom: #12117e;
$custom-light: #6953a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12117e",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 240.55,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29076,
    "c": 0.17052,
    "h": 269.4
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#12117E
secondary
#B3B437
accent
#F335F1
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12117E

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

Preview Lab → · Contrast checker → · Palette generator →

#12117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva