#152175#152175

#152175 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.142 H 269.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#152175
RGBrgb(21, 33, 117)
HSLhsl(233, 70%, 27%)
HSVhsv(233, 82%, 46%)
CMYKcmyk(82.1%, 71.8%, 0%, 54.1%)
CIE-LABlab(18.06, 28.02, -49.19)
CIE-LCHlch(18.06, 56.61, 299.67°)
OKLaboklab(30.49% -0.0024 -0.1424)
OKLCHoklch(30.49% 0.142 269)
XYZxyz(4.0629, 2.5310, 17.1006)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152175 #756915
analogous
#155175 #152175 #391575
triadic
#152175 #751521 #217515
tetradic
#152175 #751551 #756915 #157539
square
#152175 #751551 #756915 #157539
split-complementary
#152175 #753915 #517515
monochromatic
#05071A #0C1241 #152175 #1E30A9 #2B41D9

Accessibility & contrast

On white

13.94
#152175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152175
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152175#FFFFFF#000000##FFFFFF
##1521751.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152175;
/* rgb */ color: rgb(21, 33, 117);
/* oklch */ color: oklch(30.5% 0.142 269.0);
Tailwind
colors: {
  custom: {
    50: '#655c9e',
    500: '#152175',
    950: '#000000',
  },
}
SCSS
$custom: #152175;
$custom-light: #655c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#152175",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 232.5,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.14246,
    "h": 269
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#152175
secondary
#AB9D3B
accent
#D63BEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #152175

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

Preview Lab → · Contrast checker → · Palette generator →

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