#271884#271884

#271884 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.167 H 277.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#271884
RGBrgb(39, 24, 132)
HSLhsl(248, 69%, 31%)
HSVhsv(248, 82%, 52%)
CMYKcmyk(70.5%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.01, 40.42, -57.12)
CIE-LCHlch(19.01, 69.98, 305.28°)
OKLaboklab(31.98% 0.022 -0.165)
OKLCHoklch(31.98% 0.167 277.6)
XYZxyz(5.3268, 2.7501, 22.0754)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271884 #758418
analogous
#183F84 #271884 #5D1884
triadic
#271884 #842718 #188427
tetradic
#271884 #84183F #758418 #18845D
square
#271884 #84183F #758418 #18845D
split-complementary
#271884 #845D18 #3F8418
monochromatic
#08051C #180F50 #271884 #3621B8 #513BDB

Accessibility & contrast

On white

13.55
#271884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271884
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271884#FFFFFF#000000##FFFFFF
##2718841.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271884;
/* rgb */ color: rgb(39, 24, 132);
/* oklch */ color: oklch(32.0% 0.167 277.6);
Tailwind
colors: {
  custom: {
    50: '#7058a9',
    500: '#271884',
    950: '#000000',
  },
}
SCSS
$custom: #271884;
$custom-light: #7058a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271884",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 248.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31981,
    "c": 0.16651,
    "h": 277.6
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#271884
secondary
#A7B840
accent
#EC3CD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271884

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

Preview Lab → · Contrast checker → · Palette generator →

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