#271981#271981

#271981 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.162 H 277.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#271981
RGBrgb(39, 25, 129)
HSLhsl(248, 68%, 30%)
HSVhsv(248, 81%, 51%)
CMYKcmyk(69.8%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.85, 38.94, -55.50)
CIE-LCHlch(18.85, 67.80, 305.05°)
OKLaboklab(31.76% 0.0223 -0.1603)
OKLCHoklch(31.76% 0.162 277.9)
XYZxyz(5.1455, 2.7111, 21.0168)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271981 #738119
analogous
#193F81 #271981 #5B1981
triadic
#271981 #812719 #198127
tetradic
#271981 #81193F #738119 #19815B
square
#271981 #81193F #738119 #19815B
split-complementary
#271981 #815B19 #3F8119
monochromatic
#08051A #180F4E #271981 #3623B4 #513BD9

Accessibility & contrast

On white

13.62
#271981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271981
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271981#FFFFFF#000000##FFFFFF
##2719811.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271981;
/* rgb */ color: rgb(39, 25, 129);
/* oklch */ color: oklch(31.8% 0.162 277.9);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#271981',
    950: '#000000',
  },
}
SCSS
$custom: #271981;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271981",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 248.077,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.16189,
    "h": 277.9
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#271981
secondary
#A5B541
accent
#EA3DD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271981

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

Preview Lab → · Contrast checker → · Palette generator →

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