#271FA8#271FA8

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

Color values

HEX#271FA8
RGBrgb(39, 31, 168)
HSLhsl(244, 69%, 39%)
HSVhsv(244, 82%, 66%)
CMYKcmyk(76.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.44, 48.33, -70.36)
CIE-LCHlch(24.44, 85.36, 304.49°)
OKLaboklab(36.99% 0.0096 -0.2036)
OKLCHoklch(36.99% 0.204 272.7)
XYZxyz(8.3922, 4.2376, 37.4138)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271FA8 #A0A81F
analogous
#1F5CA8 #271FA8 #6C1FA8
triadic
#271FA8 #A8271F #1FA827
tetradic
#271FA8 #A81F5C #A0A81F #1FA86C
square
#271FA8 #A81F5C #A0A81F #1FA86C
split-complementary
#271FA8 #A86C1F #5CA81F
monochromatic
#0F0C41 #1B1574 #271FA8 #362CD8 #6760E2

Accessibility & contrast

On white

11.37
#271FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271FA8
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271FA8#FFFFFF#000000##FFFFFF
##271FA81.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.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: #271fa8;
/* rgb */ color: rgb(39, 31, 168);
/* oklch */ color: oklch(37.0% 0.204 272.7);
Tailwind
colors: {
  custom: {
    50: '#795fc3',
    500: '#271fa8',
    950: '#000000',
  },
}
SCSS
$custom: #271fa8;
$custom-light: #795fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#271fa8",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 243.504,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36987,
    "c": 0.2038,
    "h": 272.7
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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