#271AB3#271AB3

#271AB3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.8% C 0.220 H 272.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#271AB3
RGBrgb(39, 26, 179)
HSLhsl(245, 75%, 40%)
HSVhsv(245, 85%, 70%)
CMYKcmyk(78.2%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.03, 53.90, -76.00)
CIE-LCHlch(25.03, 93.17, 305.34°)
OKLaboklab(37.77% 0.0081 -0.2198)
OKLCHoklch(37.77% 0.22 272.1)
XYZxyz(9.3401, 4.4238, 43.0007)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271AB3 #A6B31A
analogous
#1A59B3 #271AB3 #731AB3
triadic
#271AB3 #B3271A #1AB327
tetradic
#271AB3 #B31A59 #A6B31A #1AB373
square
#271AB3 #B31A59 #A6B31A #1AB373
split-complementary
#271AB3 #B3731A #59B31A
monochromatic
#100A48 #1B127E #271AB3 #3A2AE0 #6B60E8

Accessibility & contrast

On white

11.14
#271AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#271AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271AB3
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271AB3#FFFFFF#000000##FFFFFF
##271AB31.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #271ab3;
/* rgb */ color: rgb(39, 26, 179);
/* oklch */ color: oklch(37.8% 0.220 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c5dcb',
    500: '#271ab3',
    950: '#000000',
  },
}
SCSS
$custom: #271ab3;
$custom-light: #7c5dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#271ab3",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 245.098,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.21996,
    "h": 272.1
  },
  "luminance": 0.04425
}

Semantic roles & 50–950 ramp

primary
#271AB3
secondary
#C3CC5D
accent
#F137E1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #271AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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