#271EB3#271EB3

#271EB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.217 H 271.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#271EB3
RGBrgb(39, 30, 179)
HSLhsl(244, 71%, 41%)
HSVhsv(244, 83%, 70%)
CMYKcmyk(78.2%, 83.2%, 0%, 29.8%)
CIE-LABlab(25.60, 52.18, -75.04)
CIE-LCHlch(25.60, 91.40, 304.81°)
OKLaboklab(38.17% 0.0072 -0.2171)
OKLCHoklch(38.17% 0.217 271.9)
XYZxyz(9.4349, 4.6135, 43.0323)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EB3 #AAB31E
analogous
#1E5FB3 #271EB3 #711EB3
triadic
#271EB3 #B3271E #1EB327
tetradic
#271EB3 #B31E5F #AAB31E #1EB371
square
#271EB3 #B31E5F #AAB31E #1EB371
split-complementary
#271EB3 #B3711E #5FB31E
monochromatic
#100C4A #1C157F #271EB3 #3C32DD #6E66E5

Accessibility & contrast

On white

10.92
#271EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#271EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EB3
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EB3#FFFFFF#000000##FFFFFF
##271EB31.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #271eb3;
/* rgb */ color: rgb(39, 30, 179);
/* oklch */ color: oklch(38.2% 0.217 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fcb',
    500: '#271eb3',
    950: '#000000',
  },
}
SCSS
$custom: #271eb3;
$custom-light: #7b5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#271eb3",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 243.624,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38172,
    "c": 0.21723,
    "h": 271.9
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#271EB3
secondary
#C4CB62
accent
#EE3AE3
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #271EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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