#121174#121174

#121174 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.158 H 270.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#121174
RGBrgb(18, 17, 116)
HSLhsl(241, 74%, 26%)
HSVhsv(241, 85%, 45%)
CMYKcmyk(84.5%, 85.3%, 0%, 54.5%)
CIE-LABlab(14.34, 37.14, -54.69)
CIE-LCHlch(14.34, 66.11, 304.18°)
OKLaboklab(27.78% 0.0004 -0.1583)
OKLCHoklch(27.78% 0.158 270.1)
XYZxyz(3.6012, 1.7900, 16.6753)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121174 #737411
analogous
#114174 #121174 #431174
triadic
#121174 #741211 #117412
tetradic
#121174 #741141 #737411 #117443
square
#121174 #741141 #737411 #117443
split-complementary
#121174 #744311 #417411
monochromatic
#04041B #0A093F #121174 #1A19A9 #2321DE

Accessibility & contrast

On white

15.46
#121174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121174
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121174#FFFFFF#000000##FFFFFF
##1211741.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002977
Deuteranopia (green-blind)
#001F72
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121174;
/* rgb */ color: rgb(18, 17, 116);
/* oklch */ color: oklch(27.8% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#66529d',
    500: '#121174',
    950: '#000000',
  },
}
SCSS
$custom: #121174;
$custom-light: #66529d;
$custom-dark: #000000;
JSON
{
  "hex": "#121174",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 240.606,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.27779,
    "c": 0.15832,
    "h": 270.1
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121174

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

Preview Lab → · Contrast checker → · Palette generator →

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