#12115F#12115F

#12115F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.1% C 0.131 H 272.3°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#12115F
RGBrgb(18, 17, 95)
HSLhsl(241, 70%, 22%)
HSVhsv(241, 82%, 37%)
CMYKcmyk(81.1%, 82.1%, 0%, 62.7%)
CIE-LABlab(11.66, 29.77, -45.33)
CIE-LCHlch(11.66, 54.23, 303.30°)
OKLaboklab(25.12% 0.0052 -0.1312)
OKLCHoklch(25.12% 0.131 272.3)
XYZxyz(2.5148, 1.3555, 10.9533)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12115F #5E5F11
analogous
#11375F #12115F #39115F
triadic
#12115F #5F1211 #115F12
tetradic
#12115F #5F1137 #5E5F11 #115F39
square
#12115F #5F1137 #5E5F11 #115F39
split-complementary
#12115F #5F3911 #375F11
monochromatic
#05051A #08082B #12115F #1C1A93 #2624C7

Accessibility & contrast

On white

16.52
#12115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#12115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12115F
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12115F#FFFFFF#000000##FFFFFF
##12115F1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12115f;
/* rgb */ color: rgb(18, 17, 95);
/* oklch */ color: oklch(25.1% 0.131 272.3);
Tailwind
colors: {
  custom: {
    50: '#60508d',
    500: '#12115f',
    950: '#000000',
  },
}
SCSS
$custom: #12115f;
$custom-light: #60508d;
$custom-dark: #000000;
JSON
{
  "hex": "#12115f",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 240.769,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25124,
    "c": 0.1313,
    "h": 272.3
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#12115F
secondary
#969834
accent
#EC3BEA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12115F

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

Preview Lab → · Contrast checker → · Palette generator →

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