#152275#152275

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

Color values

HEX#152275
RGBrgb(21, 34, 117)
HSLhsl(232, 70%, 27%)
HSVhsv(232, 82%, 46%)
CMYKcmyk(82.1%, 70.9%, 0%, 54.1%)
CIE-LABlab(18.31, 27.34, -48.77)
CIE-LCHlch(18.31, 55.91, 299.28°)
OKLaboklab(30.68% -0.003 -0.1412)
OKLCHoklch(30.68% 0.141 268.8)
XYZxyz(4.0911, 2.5874, 17.1100)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152275 #756815
analogous
#155275 #152275 #381575
triadic
#152275 #751522 #227515
tetradic
#152275 #751552 #756815 #157538
square
#152275 #751552 #756815 #157538
split-complementary
#152275 #753815 #527515
monochromatic
#05081A #0C1341 #152275 #1E31A9 #2B43D9

Accessibility & contrast

On white

13.84
#152275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#152275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152275
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152275#FFFFFF#000000##FFFFFF
##1522751.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152275;
/* rgb */ color: rgb(21, 34, 117);
/* oklch */ color: oklch(30.7% 0.141 268.8);
Tailwind
colors: {
  custom: {
    50: '#655d9e',
    500: '#152275',
    950: '#000000',
  },
}
SCSS
$custom: #152275;
$custom-light: #655d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#152275",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 231.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30676,
    "c": 0.14126,
    "h": 268.8
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#152275
secondary
#AB9C3B
accent
#D43BEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #152275

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

Preview Lab → · Contrast checker → · Palette generator →

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