#271DBC#271DBC

#271DBC is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.1% C 0.228 H 271.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#271DBC
RGBrgb(39, 29, 188)
HSLhsl(244, 73%, 43%)
HSVhsv(244, 85%, 74%)
CMYKcmyk(79.3%, 84.6%, 0%, 26.3%)
CIE-LABlab(26.56, 55.31, -78.81)
CIE-LCHlch(26.56, 96.28, 305.06°)
OKLaboklab(39.15% 0.0052 -0.228)
OKLCHoklch(39.15% 0.228 271.3)
XYZxyz(10.3501, 4.9397, 47.9752)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271DBC #B2BC1D
analogous
#1D62BC #271DBC #771DBC
triadic
#271DBC #BC271D #1DBC27
tetradic
#271DBC #BC1D62 #B2BC1D #1DBC77
square
#271DBC #BC1D62 #B2BC1D #1DBC77
split-complementary
#271DBC #BC771D #62BC1D
monochromatic
#110D52 #1C1587 #271DBC #4136E0 #736BE8

Accessibility & contrast

On white

10.56
#271DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#271DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271DBC
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271DBC#FFFFFF#000000##FFFFFF
##271DBC1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046C0
Deuteranopia (green-blind)
#0037B9
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #271dbc;
/* rgb */ color: rgb(39, 29, 188);
/* oklch */ color: oklch(39.1% 0.228 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fd2',
    500: '#271dbc',
    950: '#000000',
  },
}
SCSS
$custom: #271dbc;
$custom-light: #7e5fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#271dbc",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 188
  },
  "hsl": {
    "h": 243.774,
    "s": 73.272,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39148,
    "c": 0.22805,
    "h": 271.3
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#271DBC
secondary
#C8CE67
accent
#F038E4
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #271DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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