#271B90#271B90

#271B90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.179 H 275.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#271B90
RGBrgb(39, 27, 144)
HSLhsl(246, 68%, 34%)
HSVhsv(246, 81%, 56%)
CMYKcmyk(72.9%, 81.3%, 0%, 43.5%)
CIE-LABlab(20.94, 42.73, -61.46)
CIE-LCHlch(20.94, 74.85, 304.81°)
OKLaboklab(33.73% 0.0173 -0.1777)
OKLCHoklch(33.73% 0.179 275.5)
XYZxyz(6.2610, 3.2282, 26.6733)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B90 #84901B
analogous
#1B4990 #271B90 #611B90
triadic
#271B90 #90271B #1B9027
tetradic
#271B90 #901B49 #84901B #1B9061
square
#271B90 #901B49 #84901B #1B9061
split-complementary
#271B90 #90611B #49901B
monochromatic
#0B0829 #19115C #271B90 #3525C4 #5849DD

Accessibility & contrast

On white

12.76
#271B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B90
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B90#FFFFFF#000000##FFFFFF
##271B901.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271b90;
/* rgb */ color: rgb(39, 27, 144);
/* oklch */ color: oklch(33.7% 0.179 275.5);
Tailwind
colors: {
  custom: {
    50: '#735bb2',
    500: '#271b90',
    950: '#000000',
  },
}
SCSS
$custom: #271b90;
$custom-light: #735bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#271b90",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 246.154,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33728,
    "c": 0.17853,
    "h": 275.5
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#271B90
secondary
#B2BF48
accent
#EB3DD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B90

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

Preview Lab → · Contrast checker → · Palette generator →

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