#151774#151774

#151774 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.152 H 270.8°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#151774
RGBrgb(21, 23, 116)
HSLhsl(239, 69%, 27%)
HSVhsv(239, 82%, 45%)
CMYKcmyk(81.9%, 80.2%, 0%, 54.5%)
CIE-LABlab(15.66, 34.01, -52.50)
CIE-LCHlch(15.66, 62.56, 302.94°)
OKLaboklab(28.74% 0.0021 -0.152)
OKLCHoklch(28.74% 0.152 270.8)
XYZxyz(3.7670, 2.0328, 16.7134)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151774 #747215
analogous
#154774 #151774 #431574
triadic
#151774 #741517 #177415
tetradic
#151774 #741547 #747215 #157443
square
#151774 #741547 #747215 #157443
split-complementary
#151774 #744315 #477415
monochromatic
#05051A #0C0D40 #151774 #1E21A8 #2B2ED9

Accessibility & contrast

On white

14.93
#151774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151774
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151774#FFFFFF#000000##FFFFFF
##1517741.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002272
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151774;
/* rgb */ color: rgb(21, 23, 116);
/* oklch */ color: oklch(28.7% 0.152 270.8);
Tailwind
colors: {
  custom: {
    50: '#66569d',
    500: '#151774',
    950: '#000000',
  },
}
SCSS
$custom: #151774;
$custom-light: #66569d;
$custom-dark: #000000;
JSON
{
  "hex": "#151774",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 238.737,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28744,
    "c": 0.15205,
    "h": 270.8
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#151774
secondary
#AAA83B
accent
#E83CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151774

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

Preview Lab → · Contrast checker → · Palette generator →

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