#271DC9#271DC9

#271DC9 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.7% C 0.242 H 270.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#271DC9
RGBrgb(39, 29, 201)
HSLhsl(243, 75%, 45%)
HSVhsv(243, 86%, 79%)
CMYKcmyk(80.6%, 85.6%, 0%, 21.2%)
CIE-LABlab(28.18, 59.09, -83.77)
CIE-LCHlch(28.18, 102.51, 305.20°)
OKLaboklab(40.72% 0.002 -0.2423)
OKLCHoklch(40.72% 0.242 270.5)
XYZxyz(11.8151, 5.5257, 55.6909)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271DC9 #BFC91D
analogous
#1D69C9 #271DC9 #7D1DC9
triadic
#271DC9 #C9271D #1DC927
tetradic
#271DC9 #C91D69 #BFC91D #1DC97D
square
#271DC9 #C91D69 #BFC91D #1DC97D
split-complementary
#271DC9 #C97D1D #69C91D
monochromatic
#120E5E #1D1594 #271DC9 #4940E3 #7C75EB

Accessibility & contrast

On white

9.97
#271DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#271DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271DC9
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271DC9#FFFFFF#000000##FFFFFF
##271DC91.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BCD
Deuteranopia (green-blind)
#003AC6
Tritanopia (blue-blind)
#005777
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #271dc9;
/* rgb */ color: rgb(39, 29, 201);
/* oklch */ color: oklch(40.7% 0.242 270.5);
Tailwind
colors: {
  custom: {
    50: '#8160db',
    500: '#271dc9',
    950: '#000000',
  },
}
SCSS
$custom: #271dc9;
$custom-light: #8160db;
$custom-dark: #000000;
JSON
{
  "hex": "#271dc9",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 243.488,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.24234,
    "h": 270.5
  },
  "luminance": 0.05527
}

Semantic roles & 50–950 ramp

primary
#271DC9
secondary
#CCD270
accent
#F136E7
background
#F8F5FD
surface
#F0EAFB
border
#CBC6D4
text
#0D0515
muted
#7D7983

Preview Lab

Preview with #271DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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