#121157#121157

#121157 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.1% C 0.120 H 273.3°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#121157
RGBrgb(18, 17, 87)
HSLhsl(241, 67%, 20%)
HSVhsv(241, 80%, 34%)
CMYKcmyk(79.3%, 80.5%, 0%, 65.9%)
CIE-LABlab(10.69, 26.81, -41.55)
CIE-LCHlch(10.69, 49.45, 302.84°)
OKLaboklab(24.15% 0.0069 -0.1202)
OKLCHoklch(24.15% 0.12 273.3)
XYZxyz(2.1696, 1.2174, 9.1356)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121157 #565711
analogous
#113357 #121157 #351157
triadic
#121157 #571211 #115712
tetradic
#121157 #571133 #565711 #115735
square
#121157 #571133 #565711 #115735
split-complementary
#121157 #573511 #335711
monochromatic
#05051A #070724 #121157 #1D1B8A #2725BD

Accessibility & contrast

On white

16.89
#121157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#121157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121157
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121157#FFFFFF#000000##FFFFFF
##1211571.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002059
Deuteranopia (green-blind)
#001956
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121157;
/* rgb */ color: rgb(18, 17, 87);
/* oklch */ color: oklch(24.1% 0.120 273.3);
Tailwind
colors: {
  custom: {
    50: '#5d5087',
    500: '#121157',
    950: '#000000',
  },
}
SCSS
$custom: #121157;
$custom-light: #5d5087;
$custom-dark: #000000;
JSON
{
  "hex": "#121157",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 240.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24149,
    "c": 0.12041,
    "h": 273.3
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#121157
secondary
#8F9034
accent
#EA3EE8
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121157

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

Preview Lab → · Contrast checker → · Palette generator →

#121157 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva