#271CB0#271CB0

#271CB0 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.6% C 0.215 H 272.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#271CB0
RGBrgb(39, 28, 176)
HSLhsl(244, 73%, 40%)
HSVhsv(244, 84%, 69%)
CMYKcmyk(77.8%, 84.1%, 0%, 31%)
CIE-LABlab(24.94, 52.16, -74.35)
CIE-LCHlch(24.94, 90.82, 305.05°)
OKLaboklab(37.61% 0.0084 -0.2151)
OKLCHoklch(37.61% 0.215 272.2)
XYZxyz(9.0858, 4.3954, 41.4354)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271CB0 #A5B01C
analogous
#1C5BB0 #271CB0 #711CB0
triadic
#271CB0 #B0271C #1CB027
tetradic
#271CB0 #B01C5B #A5B01C #1CB071
square
#271CB0 #B01C5B #A5B01C #1CB071
split-complementary
#271CB0 #B0711C #5BB01C
monochromatic
#100B46 #1B147B #271CB0 #392CDD #6A61E6

Accessibility & contrast

On white

11.17
#271CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#271CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271CB0
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271CB0#FFFFFF#000000##FFFFFF
##271CB01.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B4
Deuteranopia (green-blind)
#0034AE
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #271cb0;
/* rgb */ color: rgb(39, 28, 176);
/* oklch */ color: oklch(37.6% 0.215 272.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ec9',
    500: '#271cb0',
    950: '#000000',
  },
}
SCSS
$custom: #271cb0;
$custom-light: #7b5ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#271cb0",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 176
  },
  "hsl": {
    "h": 244.459,
    "s": 72.549,
    "l": 40
  },
  "oklch": {
    "l": 0.37608,
    "c": 0.21524,
    "h": 272.2
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#271CB0
secondary
#C2CA5E
accent
#EF39E2
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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