#271E79#271E79

#271E79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.146 H 278.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#271E79
RGBrgb(39, 30, 121)
HSLhsl(246, 60%, 30%)
HSVhsv(246, 75%, 47%)
CMYKcmyk(67.8%, 75.2%, 0%, 52.5%)
CIE-LABlab(18.97, 33.45, -50.21)
CIE-LCHlch(18.97, 60.33, 303.67°)
OKLaboklab(31.59% 0.0212 -0.1449)
OKLCHoklch(31.59% 0.147 278.3)
XYZxyz(4.7511, 2.7400, 18.3639)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E79 #70791E
analogous
#1E4379 #271E79 #551E79
triadic
#271E79 #79271E #1E7927
tetradic
#271E79 #791E43 #70791E #1E7955
square
#271E79 #791E43 #70791E #1E7955
split-complementary
#271E79 #79551E #43791E
monochromatic
#080619 #171248 #271E79 #372AAA #5041D0

Accessibility & contrast

On white

13.57
#271E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E79
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E79#FFFFFF#000000##FFFFFF
##271E791.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271e79;
/* rgb */ color: rgb(39, 30, 121);
/* oklch */ color: oklch(31.6% 0.146 278.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ba1',
    500: '#271e79',
    950: '#000000',
  },
}
SCSS
$custom: #271e79;
$custom-light: #6d5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#271e79",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 245.934,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3159,
    "c": 0.1465,
    "h": 278.3
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#271E79
secondary
#A2AD46
accent
#E344D4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E79

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

Preview Lab → · Contrast checker → · Palette generator →

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