#271B92#271B92

#271B92 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.181 H 275.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#271B92
RGBrgb(39, 27, 146)
HSLhsl(246, 69%, 34%)
HSVhsv(246, 82%, 57%)
CMYKcmyk(73.3%, 81.5%, 0%, 42.7%)
CIE-LABlab(21.17, 43.36, -62.31)
CIE-LCHlch(21.17, 75.92, 304.83°)
OKLaboklab(33.96% 0.0167 -0.1802)
OKLCHoklch(33.96% 0.181 275.3)
XYZxyz(6.4152, 3.2899, 27.4855)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B92 #86921B
analogous
#1B4B92 #271B92 #631B92
triadic
#271B92 #92271B #1B9227
tetradic
#271B92 #921B4B #86921B #1B9263
square
#271B92 #921B4B #86921B #1B9263
split-complementary
#271B92 #92631B #4B921B
monochromatic
#0B082B #19115E #271B92 #3525C6 #594ADE

Accessibility & contrast

On white

12.66
#271B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B92
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B92#FFFFFF#000000##FFFFFF
##271B921.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#002D90
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271b92;
/* rgb */ color: rgb(39, 27, 146);
/* oklch */ color: oklch(34.0% 0.181 275.3);
Tailwind
colors: {
  custom: {
    50: '#735bb3',
    500: '#271b92',
    950: '#000000',
  },
}
SCSS
$custom: #271b92;
$custom-light: #735bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#271b92",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 246.05,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.18094,
    "h": 275.3
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#271B92
secondary
#B4BF49
accent
#EC3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B92

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

Preview Lab → · Contrast checker → · Palette generator →

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