#271594#271594

#271594 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.188 H 275.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#271594
RGBrgb(39, 21, 148)
HSLhsl(249, 75%, 33%)
HSVhsv(249, 86%, 58%)
CMYKcmyk(73.6%, 85.8%, 0%, 42%)
CIE-LABlab(20.46, 46.77, -64.73)
CIE-LCHlch(20.46, 79.86, 305.85°)
OKLaboklab(33.54% 0.0183 -0.1871)
OKLCHoklch(33.54% 0.188 275.6)
XYZxyz(6.4484, 3.1052, 28.2707)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271594 #829415
analogous
#154294 #271594 #661594
triadic
#271594 #942715 #159427
tetradic
#271594 #941542 #829415 #159466
square
#271594 #941542 #829415 #159466
split-complementary
#271594 #946615 #429415
monochromatic
#0B0629 #190D5E #271594 #351DCA #5740E4

Accessibility & contrast

On white

12.95
#271594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271594
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271594#FFFFFF#000000##FFFFFF
##2715941.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003797
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271594;
/* rgb */ color: rgb(39, 21, 148);
/* oklch */ color: oklch(33.5% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#7458b5',
    500: '#271594',
    950: '#000000',
  },
}
SCSS
$custom: #271594;
$custom-light: #7458b5;
$custom-dark: #000000;
JSON
{
  "hex": "#271594",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 148
  },
  "hsl": {
    "h": 248.504,
    "s": 75.148,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33539,
    "c": 0.18797,
    "h": 275.6
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#271594
secondary
#B1C441
accent
#F236D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271594

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

Preview Lab → · Contrast checker → · Palette generator →

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