#15227C#15227C

#15227C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.151 H 268.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#15227C
RGBrgb(21, 34, 124)
HSLhsl(232, 71%, 28%)
HSVhsv(232, 83%, 49%)
CMYKcmyk(83.1%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.05, 30.05, -52.03)
CIE-LCHlch(19.05, 60.09, 300.01°)
OKLaboklab(31.44% -0.0036 -0.1507)
OKLCHoklch(31.44% 0.151 268.6)
XYZxyz(4.5181, 2.7582, 19.3591)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15227C #7C6F15
analogous
#15557C #15227C #3B157C
triadic
#15227C #7C1522 #227C15
tetradic
#15227C #7C1555 #7C6F15 #157C3B
square
#15227C #7C1555 #7C6F15 #157C3B
split-complementary
#15227C #7C3B15 #557C15
monochromatic
#04071A #0C1448 #15227C #1E30B0 #3045DC

Accessibility & contrast

On white

13.53
#15227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#15227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15227C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15227C#FFFFFF#000000##FFFFFF
##15227C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #15227c;
/* rgb */ color: rgb(21, 34, 124);
/* oklch */ color: oklch(31.4% 0.151 268.6);
Tailwind
colors: {
  custom: {
    50: '#675da3',
    500: '#15227c',
    950: '#000000',
  },
}
SCSS
$custom: #15227c;
$custom-light: #675da3;
$custom-dark: #000000;
JSON
{
  "hex": "#15227c",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 232.427,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.15078,
    "h": 268.6
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#15227C
secondary
#B1A23C
accent
#D73AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15227C

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

Preview Lab → · Contrast checker → · Palette generator →

#15227C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva