#271DA6#271DA6

#271DA6 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.5% C 0.203 H 273.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#271DA6
RGBrgb(39, 29, 166)
HSLhsl(244, 70%, 38%)
HSVhsv(244, 83%, 65%)
CMYKcmyk(76.5%, 82.5%, 0%, 34.9%)
CIE-LABlab(23.88, 48.66, -70.08)
CIE-LCHlch(23.88, 85.32, 304.77°)
OKLaboklab(36.53% 0.0107 -0.2027)
OKLCHoklch(36.53% 0.203 273)
XYZxyz(8.1567, 4.0624, 36.4232)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271DA6 #9CA61D
analogous
#1D57A6 #271DA6 #6C1DA6
triadic
#271DA6 #A6271D #1DA627
tetradic
#271DA6 #A61D57 #9CA61D #1DA66C
square
#271DA6 #A61D57 #9CA61D #1DA66C
split-complementary
#271DA6 #A66C1D #57A61D
monochromatic
#0F0B3E #1B1472 #271DA6 #3427D9 #655BE2

Accessibility & contrast

On white

11.59
#271DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#271DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271DA6
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271DA6#FFFFFF#000000##FFFFFF
##271DA61.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0032A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #271da6;
/* rgb */ color: rgb(39, 29, 166);
/* oklch */ color: oklch(36.5% 0.203 273.0);
Tailwind
colors: {
  custom: {
    50: '#785dc2',
    500: '#271da6',
    950: '#000000',
  },
}
SCSS
$custom: #271da6;
$custom-light: #785dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#271da6",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 244.38,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36526,
    "c": 0.20302,
    "h": 273
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#271DA6
secondary
#BEC659
accent
#ED3BE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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