#121151#121151

#121151 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.112 H 274.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#121151
RGBrgb(18, 17, 81)
HSLhsl(241, 65%, 19%)
HSVhsv(241, 79%, 32%)
CMYKcmyk(77.8%, 79%, 0%, 68.2%)
CIE-LABlab(9.98, 24.54, -38.62)
CIE-LCHlch(9.98, 45.75, 302.43°)
OKLaboklab(23.44% 0.0082 -0.1117)
OKLCHoklch(23.44% 0.112 274.2)
XYZxyz(1.9346, 1.1234, 7.8979)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121151 #505111
analogous
#113051 #121151 #321151
triadic
#121151 #511211 #115112
tetradic
#121151 #511130 #505111 #115132
square
#121151 #511130 #505111 #115132
split-complementary
#121151 #513211 #305111
monochromatic
#060519 #07061E #121151 #1D1C84 #2826B6

Accessibility & contrast

On white

17.15
#121151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#121151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121151
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121151#FFFFFF#000000##FFFFFF
##1211511.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #121151;
/* rgb */ color: rgb(18, 17, 81);
/* oklch */ color: oklch(23.4% 0.112 274.2);
Tailwind
colors: {
  custom: {
    50: '#5b4f83',
    500: '#121151',
    950: '#000000',
  },
}
SCSS
$custom: #121151;
$custom-light: #5b4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#121151",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 240.938,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.23437,
    "c": 0.11197,
    "h": 274.2
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#121151
secondary
#898A34
accent
#E840E6
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #121151

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

Preview Lab → · Contrast checker → · Palette generator →

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