#121173#121173

#121173 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.157 H 270.2°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#121173
RGBrgb(18, 17, 115)
HSLhsl(241, 74%, 26%)
HSVhsv(241, 85%, 45%)
CMYKcmyk(84.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(14.21, 36.80, -54.26)
CIE-LCHlch(14.21, 65.56, 304.15°)
OKLaboklab(27.65% 0.0006 -0.1571)
OKLCHoklch(27.65% 0.157 270.2)
XYZxyz(3.5434, 1.7669, 16.3706)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121173 #727311
analogous
#114173 #121173 #431173
triadic
#121173 #731211 #117312
tetradic
#121173 #731141 #727311 #117343
square
#121173 #731141 #727311 #117343
split-complementary
#121173 #734311 #417311
monochromatic
#04041B #0A093E #121173 #1A19A8 #2321DE

Accessibility & contrast

On white

15.52
#121173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121173
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121173#FFFFFF#000000##FFFFFF
##1211731.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002976
Deuteranopia (green-blind)
#001F71
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121173;
/* rgb */ color: rgb(18, 17, 115);
/* oklch */ color: oklch(27.7% 0.157 270.2);
Tailwind
colors: {
  custom: {
    50: '#65529d',
    500: '#121173',
    950: '#000000',
  },
}
SCSS
$custom: #121173;
$custom-light: #65529d;
$custom-dark: #000000;
JSON
{
  "hex": "#121173",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 240.612,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2765,
    "c": 0.15708,
    "h": 270.2
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121173

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

Preview Lab → · Contrast checker → · Palette generator →

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