#151174#151174

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

Color values

HEX#151174
RGBrgb(21, 17, 116)
HSLhsl(242, 74%, 26%)
HSVhsv(242, 85%, 45%)
CMYKcmyk(81.9%, 85.3%, 0%, 54.5%)
CIE-LABlab(14.52, 37.32, -54.39)
CIE-LCHlch(14.52, 65.96, 304.45°)
OKLaboklab(27.95% 0.004 -0.1574)
OKLCHoklch(27.95% 0.157 271.5)
XYZxyz(3.6610, 1.8209, 16.6781)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151174 #707411
analogous
#113E74 #151174 #461174
triadic
#151174 #741511 #117415
tetradic
#151174 #74113E #707411 #117446
square
#151174 #74113E #707411 #117446
split-complementary
#151174 #744611 #3E7411
monochromatic
#05041B #0B093F #151174 #1F19A9 #2921DE

Accessibility & contrast

On white

15.39
#151174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151174
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151174#FFFFFF#000000##FFFFFF
##1511741.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002977
Deuteranopia (green-blind)
#002072
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151174;
/* rgb */ color: rgb(21, 17, 116);
/* oklch */ color: oklch(27.9% 0.157 271.5);
Tailwind
colors: {
  custom: {
    50: '#67529d',
    500: '#151174',
    950: '#000000',
  },
}
SCSS
$custom: #151174;
$custom-light: #67529d;
$custom-dark: #000000;
JSON
{
  "hex": "#151174",
  "rgb": {
    "r": 21,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 242.424,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.27946,
    "c": 0.15747,
    "h": 271.5
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#151174
secondary
#A6AB36
accent
#F137EA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151174

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

Preview Lab → · Contrast checker → · Palette generator →

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