#271583#271583

#271583 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.168 H 278.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#271583
RGBrgb(39, 21, 131)
HSLhsl(250, 72%, 30%)
HSVhsv(250, 84%, 51%)
CMYKcmyk(70.2%, 84%, 0%, 48.6%)
CIE-LABlab(18.39, 41.58, -57.52)
CIE-LCHlch(18.39, 70.98, 305.86°)
OKLaboklab(31.51% 0.0237 -0.1662)
OKLCHoklch(31.51% 0.168 278.1)
XYZxyz(5.2003, 2.6059, 21.6973)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271583 #718315
analogous
#153A83 #271583 #5E1583
triadic
#271583 #832715 #158327
tetradic
#271583 #83153A #718315 #15835E
square
#271583 #83153A #718315 #15835E
split-complementary
#271583 #835E15 #3A8315
monochromatic
#08041A #170D4E #271583 #371DB8 #5034DE

Accessibility & contrast

On white

13.80
#271583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271583
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271583#FFFFFF#000000##FFFFFF
##2715831.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002881
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271583;
/* rgb */ color: rgb(39, 21, 131);
/* oklch */ color: oklch(31.5% 0.168 278.1);
Tailwind
colors: {
  custom: {
    50: '#7057a8',
    500: '#271583',
    950: '#000000',
  },
}
SCSS
$custom: #271583;
$custom-light: #7057a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271583",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 249.818,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31515,
    "c": 0.16785,
    "h": 278.1
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#271583
secondary
#A3B83C
accent
#EF39D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271583

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

Preview Lab → · Contrast checker → · Palette generator →

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