#271EAA#271EAA

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

Color values

HEX#271EAA
RGBrgb(39, 30, 170)
HSLhsl(244, 70%, 39%)
HSVhsv(244, 82%, 67%)
CMYKcmyk(77.1%, 82.4%, 0%, 33.3%)
CIE-LABlab(24.52, 49.43, -71.44)
CIE-LCHlch(24.52, 86.87, 304.68°)
OKLaboklab(37.11% 0.0094 -0.2067)
OKLCHoklch(37.11% 0.207 272.6)
XYZxyz(8.5542, 4.2612, 38.3941)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EAA #A1AA1E
analogous
#1E5BAA #271EAA #6D1EAA
triadic
#271EAA #AA271E #1EAA27
tetradic
#271EAA #AA1E5B #A1AA1E #1EAA6D
square
#271EAA #AA1E5B #A1AA1E #1EAA6D
split-complementary
#271EAA #AA6D1E #5BAA1E
monochromatic
#0F0C42 #1B1576 #271EAA #372CDA #6860E3

Accessibility & contrast

On white

11.34
#271EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#271EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EAA
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EAA#FFFFFF#000000##FFFFFF
##271EAA1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271eaa;
/* rgb */ color: rgb(39, 30, 170);
/* oklch */ color: oklch(37.1% 0.207 272.6);
Tailwind
colors: {
  custom: {
    50: '#795ec5',
    500: '#271eaa',
    950: '#000000',
  },
}
SCSS
$custom: #271eaa;
$custom-light: #795ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#271eaa",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 170
  },
  "hsl": {
    "h": 243.857,
    "s": 70,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.2069,
    "h": 272.6
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#271EAA
secondary
#C0C75C
accent
#ED3BE1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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