#271EA6#271EA6

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

Color values

HEX#271EA6
RGBrgb(39, 30, 166)
HSLhsl(244, 69%, 38%)
HSVhsv(244, 82%, 65%)
CMYKcmyk(76.5%, 81.9%, 0%, 34.9%)
CIE-LABlab(24.04, 48.19, -69.81)
CIE-LCHlch(24.04, 84.83, 304.61°)
OKLaboklab(36.64% 0.0104 -0.202)
OKLCHoklch(36.64% 0.202 273)
XYZxyz(8.1816, 4.1122, 36.4315)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EA6 #9DA61E
analogous
#1E59A6 #271EA6 #6B1EA6
triadic
#271EA6 #A6271E #1EA627
tetradic
#271EA6 #A61E59 #9DA61E #1EA66B
square
#271EA6 #A61E59 #9DA61E #1EA66B
split-complementary
#271EA6 #A66B1E #59A61E
monochromatic
#0F0B3E #1B1572 #271EA6 #3529D8 #665DE2

Accessibility & contrast

On white

11.52
#271EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#271EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EA6
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EA6#FFFFFF#000000##FFFFFF
##271EA61.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.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: #271ea6;
/* rgb */ color: rgb(39, 30, 166);
/* oklch */ color: oklch(36.6% 0.202 273.0);
Tailwind
colors: {
  custom: {
    50: '#785ec2',
    500: '#271ea6',
    950: '#000000',
  },
}
SCSS
$custom: #271ea6;
$custom-light: #785ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#271ea6",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 243.971,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36639,
    "c": 0.20225,
    "h": 273
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#271EA6
secondary
#BFC65A
accent
#EC3CE1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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