#271FA9#271FA9

#271FA9 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.205 H 272.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#271FA9
RGBrgb(39, 31, 169)
HSLhsl(243, 69%, 39%)
HSVhsv(243, 82%, 66%)
CMYKcmyk(76.9%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.56, 48.64, -70.76)
CIE-LCHlch(24.56, 85.87, 304.50°)
OKLaboklab(37.1% 0.0094 -0.2047)
OKLCHoklch(37.1% 0.205 272.6)
XYZxyz(8.4857, 4.2750, 37.9064)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271FA9 #A1A91F
analogous
#1F5CA9 #271FA9 #6C1FA9
triadic
#271FA9 #A9271F #1FA927
tetradic
#271FA9 #A91F5C #A1A91F #1FA96C
square
#271FA9 #A91F5C #A1A91F #1FA96C
split-complementary
#271FA9 #A96C1F #5CA91F
monochromatic
#0F0C42 #1B1675 #271FA9 #372DD8 #6860E2

Accessibility & contrast

On white

11.32
#271FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#271FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271FA9
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271FA9#FFFFFF#000000##FFFFFF
##271FA91.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0033A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #271fa9;
/* rgb */ color: rgb(39, 31, 169);
/* oklch */ color: oklch(37.1% 0.205 272.6);
Tailwind
colors: {
  custom: {
    50: '#795fc4',
    500: '#271fa9',
    950: '#000000',
  },
}
SCSS
$custom: #271fa9;
$custom-light: #795fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#271fa9",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 243.478,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37104,
    "c": 0.20496,
    "h": 272.6
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#271FA9
secondary
#C0C75D
accent
#EC3CE2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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