#271EA9#271EA9

#271EA9 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.206 H 272.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#271EA9
RGBrgb(39, 30, 169)
HSLhsl(244, 70%, 39%)
HSVhsv(244, 82%, 66%)
CMYKcmyk(76.9%, 82.2%, 0%, 33.7%)
CIE-LABlab(24.40, 49.12, -71.04)
CIE-LCHlch(24.40, 86.36, 304.66°)
OKLaboklab(36.99% 0.0097 -0.2055)
OKLCHoklch(36.99% 0.206 272.7)
XYZxyz(8.4600, 4.2235, 37.8978)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EA9 #A0A91E
analogous
#1E5BA9 #271EA9 #6D1EA9
triadic
#271EA9 #A9271E #1EA927
tetradic
#271EA9 #A91E5B #A0A91E #1EA96D
square
#271EA9 #A91E5B #A0A91E #1EA96D
split-complementary
#271EA9 #A96D1E #5BA91E
monochromatic
#0F0C41 #1B1575 #271EA9 #362BD9 #675FE3

Accessibility & contrast

On white

11.38
#271EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#271EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EA9
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EA9#FFFFFF#000000##FFFFFF
##271EA91.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271ea9;
/* rgb */ color: rgb(39, 30, 169);
/* oklch */ color: oklch(37.0% 0.206 272.7);
Tailwind
colors: {
  custom: {
    50: '#795ec4',
    500: '#271ea9',
    950: '#000000',
  },
}
SCSS
$custom: #271ea9;
$custom-light: #795ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#271ea9",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 243.885,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.20574,
    "h": 272.7
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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