#12117F#12117F

#12117F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.172 H 269.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#12117F
RGBrgb(18, 17, 127)
HSLhsl(241, 76%, 28%)
HSVhsv(241, 87%, 50%)
CMYKcmyk(85.8%, 86.6%, 0%, 50.2%)
CIE-LABlab(15.81, 40.78, -59.32)
CIE-LCHlch(15.81, 71.99, 304.51°)
OKLaboklab(29.21% -0.0021 -0.1717)
OKLCHoklch(29.21% 0.172 269.3)
XYZxyz(4.2794, 2.0613, 20.2469)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12117F #7E7F11
analogous
#11477F #12117F #49117F
triadic
#12117F #7F1211 #117F12
tetradic
#12117F #7F1147 #7E7F11 #117F49
square
#12117F #7F1147 #7E7F11 #117F49
split-complementary
#12117F #7F4911 #477F11
monochromatic
#04041B #0A0A49 #12117F #1A18B5 #2A28E2

Accessibility & contrast

On white

14.87
#12117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12117F
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12117F#FFFFFF#000000##FFFFFF
##12117F1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00217D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12117f;
/* rgb */ color: rgb(18, 17, 127);
/* oklch */ color: oklch(29.2% 0.172 269.3);
Tailwind
colors: {
  custom: {
    50: '#6953a5',
    500: '#12117f',
    950: '#000000',
  },
}
SCSS
$custom: #12117f;
$custom-light: #6953a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12117f",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 240.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29207,
    "c": 0.17172,
    "h": 269.3
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12117F

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

Preview Lab → · Contrast checker → · Palette generator →

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