#271FB3#271FB3

#271FB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.216 H 271.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#271FB3
RGBrgb(39, 31, 179)
HSLhsl(243, 70%, 41%)
HSVhsv(243, 83%, 70%)
CMYKcmyk(78.2%, 82.7%, 0%, 29.8%)
CIE-LABlab(25.76, 51.73, -74.78)
CIE-LCHlch(25.76, 90.93, 304.67°)
OKLaboklab(38.28% 0.0069 -0.2164)
OKLCHoklch(38.28% 0.217 271.8)
XYZxyz(9.4606, 4.6649, 43.0409)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271FB3 #ABB31F
analogous
#1F61B3 #271FB3 #711FB3
triadic
#271FB3 #B3271F #1FB327
tetradic
#271FB3 #B31F61 #ABB31F #1FB371
square
#271FB3 #B31F61 #ABB31F #1FB371
split-complementary
#271FB3 #B3711F #61B31F
monochromatic
#100D4B #1C167F #271FB3 #3D33DC #6E68E5

Accessibility & contrast

On white

10.86
#271FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#271FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271FB3
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271FB3#FFFFFF#000000##FFFFFF
##271FB31.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271fb3;
/* rgb */ color: rgb(39, 31, 179);
/* oklch */ color: oklch(38.3% 0.216 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fcb',
    500: '#271fb3',
    950: '#000000',
  },
}
SCSS
$custom: #271fb3;
$custom-light: #7b5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#271fb3",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 243.243,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38279,
    "c": 0.2165,
    "h": 271.8
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#271FB3
secondary
#C5CA64
accent
#ED3BE4
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #271FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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