#271FAB#271FAB

#271FAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.3% C 0.207 H 272.5°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#271FAB
RGBrgb(39, 31, 171)
HSLhsl(243, 69%, 40%)
HSVhsv(243, 82%, 67%)
CMYKcmyk(77.2%, 81.9%, 0%, 32.9%)
CIE-LABlab(24.80, 49.26, -71.58)
CIE-LCHlch(24.80, 86.89, 304.54°)
OKLaboklab(37.34% 0.0089 -0.2071)
OKLCHoklch(37.34% 0.207 272.5)
XYZxyz(8.6749, 4.3506, 38.9027)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271FAB #A3AB1F
analogous
#1F5DAB #271FAB #6D1FAB
triadic
#271FAB #AB271F #1FAB27
tetradic
#271FAB #AB1F5D #A3AB1F #1FAB6D
square
#271FAB #AB1F5D #A3AB1F #1FAB6D
split-complementary
#271FAB #AB6D1F #5DAB1F
monochromatic
#0F0C43 #1B1677 #271FAB #382ED9 #6962E3

Accessibility & contrast

On white

11.23
#271FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#271FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271FAB
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271FAB#FFFFFF#000000##FFFFFF
##271FAB1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0034A9
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #271fab;
/* rgb */ color: rgb(39, 31, 171);
/* oklch */ color: oklch(37.3% 0.207 272.5);
Tailwind
colors: {
  custom: {
    50: '#795fc5',
    500: '#271fab',
    950: '#000000',
  },
}
SCSS
$custom: #271fab;
$custom-light: #795fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#271fab",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 243.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37338,
    "c": 0.20729,
    "h": 272.5
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#271FAB
secondary
#C1C75E
accent
#EC3CE2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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