#121172#121172

#121172 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.156 H 270.3°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#121172
RGBrgb(18, 17, 114)
HSLhsl(241, 74%, 26%)
HSVhsv(241, 85%, 45%)
CMYKcmyk(84.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.08, 36.46, -53.83)
CIE-LCHlch(14.08, 65.01, 304.11°)
OKLaboklab(27.52% 0.0008 -0.1558)
OKLCHoklch(27.52% 0.156 270.3)
XYZxyz(3.4861, 1.7440, 16.0692)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121172 #717211
analogous
#114072 #121172 #431172
triadic
#121172 #721211 #117212
tetradic
#121172 #721140 #717211 #117243
square
#121172 #721140 #717211 #117243
split-complementary
#121172 #724311 #407211
monochromatic
#04041B #0A093D #121172 #1A19A7 #2321DD

Accessibility & contrast

On white

15.57
#121172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121172
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121172#FFFFFF#000000##FFFFFF
##1211721.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#001F70
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121172;
/* rgb */ color: rgb(18, 17, 114);
/* oklch */ color: oklch(27.5% 0.156 270.3);
Tailwind
colors: {
  custom: {
    50: '#65529c',
    500: '#121172',
    950: '#000000',
  },
}
SCSS
$custom: #121172;
$custom-light: #65529c;
$custom-dark: #000000;
JSON
{
  "hex": "#121172",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 240.619,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27522,
    "c": 0.15583,
    "h": 270.3
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#121172
secondary
#A8A936
accent
#F137EF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #121172

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

Preview Lab → · Contrast checker → · Palette generator →

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