#121158#121158

#121158 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.122 H 273.2°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#121158
RGBrgb(18, 17, 88)
HSLhsl(241, 68%, 21%)
HSVhsv(241, 81%, 35%)
CMYKcmyk(79.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(10.80, 27.19, -42.03)
CIE-LCHlch(10.80, 50.06, 302.90°)
OKLaboklab(24.27% 0.0067 -0.1216)
OKLCHoklch(24.27% 0.122 273.2)
XYZxyz(2.2108, 1.2338, 9.3523)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121158 #575811
analogous
#113358 #121158 #351158
triadic
#121158 #581211 #115812
tetradic
#121158 #581133 #575811 #115835
square
#121158 #581133 #575811 #115835
split-complementary
#121158 #583511 #335811
monochromatic
#05051A #080725 #121158 #1C1B8B #2725BF

Accessibility & contrast

On white

16.84
#121158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121158
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121158#FFFFFF#000000##FFFFFF
##1211581.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205A
Deuteranopia (green-blind)
#001A57
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121158;
/* rgb */ color: rgb(18, 17, 88);
/* oklch */ color: oklch(24.3% 0.122 273.2);
Tailwind
colors: {
  custom: {
    50: '#5e5088',
    500: '#121158',
    950: '#000000',
  },
}
SCSS
$custom: #121158;
$custom-light: #5e5088;
$custom-dark: #000000;
JSON
{
  "hex": "#121158",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 240.845,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24269,
    "c": 0.1218,
    "h": 273.2
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#121158
secondary
#909134
accent
#EA3DE8
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121158

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

Preview Lab → · Contrast checker → · Palette generator →

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