#271EA8#271EA8

#271EA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.205 H 272.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#271EA8
RGBrgb(39, 30, 168)
HSLhsl(244, 70%, 39%)
HSVhsv(244, 82%, 66%)
CMYKcmyk(76.8%, 82.1%, 0%, 34.1%)
CIE-LABlab(24.28, 48.81, -70.63)
CIE-LCHlch(24.28, 85.85, 304.65°)
OKLaboklab(36.87% 0.0099 -0.2043)
OKLCHoklch(36.87% 0.205 272.8)
XYZxyz(8.3665, 4.1861, 37.4053)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EA8 #9FA81E
analogous
#1E5AA8 #271EA8 #6C1EA8
triadic
#271EA8 #A8271E #1EA827
tetradic
#271EA8 #A81E5A #9FA81E #1EA86C
square
#271EA8 #A81E5A #9FA81E #1EA86C
split-complementary
#271EA8 #A86C1E #5AA81E
monochromatic
#0F0B40 #1B1574 #271EA8 #362AD9 #675EE2

Accessibility & contrast

On white

11.43
#271EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271EA8
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EA8#FFFFFF#000000##FFFFFF
##271EA81.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #271ea8;
/* rgb */ color: rgb(39, 30, 168);
/* oklch */ color: oklch(36.9% 0.205 272.8);
Tailwind
colors: {
  custom: {
    50: '#795ec3',
    500: '#271ea8',
    950: '#000000',
  },
}
SCSS
$custom: #271ea8;
$custom-light: #795ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#271ea8",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 243.913,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36873,
    "c": 0.20458,
    "h": 272.8
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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