#271E81#271E81

#271E81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 277.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#271E81
RGBrgb(39, 30, 129)
HSLhsl(245, 62%, 31%)
HSVhsv(245, 77%, 51%)
CMYKcmyk(69.8%, 76.7%, 0%, 49.4%)
CIE-LABlab(19.82, 36.17, -53.90)
CIE-LCHlch(19.82, 64.91, 303.86°)
OKLaboklab(32.45% 0.0195 -0.1557)
OKLCHoklch(32.45% 0.157 277.1)
XYZxyz(5.2621, 2.9444, 21.0556)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E81 #78811E
analogous
#1E4681 #271E81 #581E81
triadic
#271E81 #81271E #1E8127
tetradic
#271E81 #811E46 #78811E #1E8158
square
#271E81 #811E46 #78811E #1E8158
split-complementary
#271E81 #81581E #46811E
monochromatic
#09071E #18124F #271E81 #362AB3 #5246D4

Accessibility & contrast

On white

13.22
#271E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E81
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E81#FFFFFF#000000##FFFFFF
##271E811.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271e81;
/* rgb */ color: rgb(39, 30, 129);
/* oklch */ color: oklch(32.4% 0.157 277.1);
Tailwind
colors: {
  custom: {
    50: '#6f5ca7',
    500: '#271e81',
    950: '#000000',
  },
}
SCSS
$custom: #271e81;
$custom-light: #6f5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#271e81",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 245.455,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.15693,
    "h": 277.1
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#271E81
secondary
#AAB447
accent
#E542D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271E81

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

Preview Lab → · Contrast checker → · Palette generator →

#271E81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva