#15227F#15227F

#15227F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.155 H 268.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#15227F
RGBrgb(21, 34, 127)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 83%, 50%)
CMYKcmyk(83.5%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.37, 31.20, -53.41)
CIE-LCHlch(19.37, 61.85, 300.29°)
OKLaboklab(31.77% -0.004 -0.1547)
OKLCHoklch(31.77% 0.155 268.5)
XYZxyz(4.7107, 2.8352, 20.3735)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15227F #7F7215
analogous
#15577F #15227F #3D157F
triadic
#15227F #7F1522 #227F15
tetradic
#15227F #7F1557 #7F7215 #157F3D
square
#15227F #7F1557 #7F7215 #157F3D
split-complementary
#15227F #7F3D15 #577F15
monochromatic
#04071A #0C144A #15227F #1E30B4 #3146DD

Accessibility & contrast

On white

13.40
#15227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#15227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15227F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15227F#FFFFFF#000000##FFFFFF
##15227F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #15227f;
/* rgb */ color: rgb(21, 34, 127);
/* oklch */ color: oklch(31.8% 0.155 268.5);
Tailwind
colors: {
  custom: {
    50: '#685da5',
    500: '#15227f',
    950: '#000000',
  },
}
SCSS
$custom: #15227f;
$custom-light: #685da5;
$custom-dark: #000000;
JSON
{
  "hex": "#15227f",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 232.642,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.15479,
    "h": 268.5
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#15227F
secondary
#B4A53C
accent
#D839EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15227F

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

Preview Lab → · Contrast checker → · Palette generator →

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