#271BB0#271BB0

#271BB0 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.216 H 272.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#271BB0
RGBrgb(39, 27, 176)
HSLhsl(245, 73%, 40%)
HSVhsv(245, 85%, 69%)
CMYKcmyk(77.8%, 84.7%, 0%, 31%)
CIE-LABlab(24.79, 52.59, -74.59)
CIE-LCHlch(24.79, 91.27, 305.19°)
OKLaboklab(37.51% 0.0087 -0.2158)
OKLCHoklch(37.51% 0.216 272.3)
XYZxyz(9.0625, 4.3488, 41.4277)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BB0 #A4B01B
analogous
#1B5AB0 #271BB0 #711BB0
triadic
#271BB0 #B0271B #1BB027
tetradic
#271BB0 #B01B5A #A4B01B #1BB071
square
#271BB0 #B01B5A #A4B01B #1BB071
split-complementary
#271BB0 #B0711B #5AB01B
monochromatic
#0F0B46 #1B137B #271BB0 #382ADE #6A5FE6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271BB0#FFFFFF#000000##FFFFFF
##271BB01.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)
#0042B4
Deuteranopia (green-blind)
#0033AE
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #271bb0;
/* rgb */ color: rgb(39, 27, 176);
/* oklch */ color: oklch(37.5% 0.216 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b5dc9',
    500: '#271bb0',
    950: '#000000',
  },
}
SCSS
$custom: #271bb0;
$custom-light: #7b5dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#271bb0",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 176
  },
  "hsl": {
    "h": 244.832,
    "s": 73.399,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37508,
    "c": 0.21593,
    "h": 272.3
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#271BB0
secondary
#C2CB5C
accent
#F038E1
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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