#151275#151275

#151275 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.158 H 271.3°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#151275
RGBrgb(21, 18, 117)
HSLhsl(242, 73%, 26%)
HSVhsv(242, 85%, 46%)
CMYKcmyk(82.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(14.82, 37.14, -54.53)
CIE-LCHlch(14.82, 65.98, 304.26°)
OKLaboklab(28.19% 0.0035 -0.1578)
OKLCHoklch(28.19% 0.158 271.3)
XYZxyz(3.7354, 1.8760, 16.9914)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151275 #727512
analogous
#124175 #151275 #471275
triadic
#151275 #751512 #127515
tetradic
#151275 #751241 #727512 #127547
square
#151275 #751241 #727512 #127547
split-complementary
#151275 #754712 #417512
monochromatic
#05041B #0B0A40 #151275 #1F1AAA #2A24DD

Accessibility & contrast

On white

15.27
#151275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151275
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151275#FFFFFF#000000##FFFFFF
##1512751.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A78
Deuteranopia (green-blind)
#002073
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151275;
/* rgb */ color: rgb(21, 18, 117);
/* oklch */ color: oklch(28.2% 0.158 271.3);
Tailwind
colors: {
  custom: {
    50: '#67539e',
    500: '#151275',
    950: '#000000',
  },
}
SCSS
$custom: #151275;
$custom-light: #67539e;
$custom-dark: #000000;
JSON
{
  "hex": "#151275",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 241.818,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28195,
    "c": 0.15788,
    "h": 271.3
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#151275
secondary
#A8AC37
accent
#F038EA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151275

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

Preview Lab → · Contrast checker → · Palette generator →

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