#152274#152274

#152274 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.140 H 268.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#152274
RGBrgb(21, 34, 116)
HSLhsl(232, 69%, 27%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.9%, 70.7%, 0%, 54.5%)
CIE-LABlab(18.21, 26.95, -48.30)
CIE-LCHlch(18.21, 55.31, 299.16°)
OKLaboklab(30.57% -0.0029 -0.1398)
OKLCHoklch(30.57% 0.14 268.8)
XYZxyz(4.0326, 2.5640, 16.8020)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152274 #746715
analogous
#155274 #152274 #371574
triadic
#152274 #741522 #227415
tetradic
#152274 #741552 #746715 #157437
square
#152274 #741552 #746715 #157437
split-complementary
#152274 #743715 #527415
monochromatic
#05081A #0C1340 #152274 #1E31A8 #2B43D9

Accessibility & contrast

On white

13.88
#152274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152274
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152274#FFFFFF#000000##FFFFFF
##1522741.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152274;
/* rgb */ color: rgb(21, 34, 116);
/* oklch */ color: oklch(30.6% 0.140 268.8);
Tailwind
colors: {
  custom: {
    50: '#655d9d',
    500: '#152274',
    950: '#000000',
  },
}
SCSS
$custom: #152274;
$custom-light: #655d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#152274",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 231.789,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.13988,
    "h": 268.8
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#152274
secondary
#AA9B3B
accent
#D43CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152274

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

Preview Lab → · Contrast checker → · Palette generator →

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