#271B94#271B94

#271B94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.183 H 275.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#271B94
RGBrgb(39, 27, 148)
HSLhsl(246, 69%, 34%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73.6%, 81.8%, 0%, 42%)
CIE-LABlab(21.40, 44.00, -63.16)
CIE-LCHlch(21.40, 76.98, 304.86°)
OKLaboklab(34.19% 0.0162 -0.1826)
OKLCHoklch(34.19% 0.183 275.1)
XYZxyz(6.5722, 3.3527, 28.3120)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B94 #88941B
analogous
#1B4C94 #271B94 #631B94
triadic
#271B94 #94271B #1B9427
tetradic
#271B94 #941B4C #88941B #1B9463
square
#271B94 #941B4C #88941B #1B9463
split-complementary
#271B94 #94631B #4C941B
monochromatic
#0C082C #191260 #271B94 #3524C8 #5A4BDE

Accessibility & contrast

On white

12.57
#271B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#271B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B94
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B94#FFFFFF#000000##FFFFFF
##271B941.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271b94;
/* rgb */ color: rgb(39, 27, 148);
/* oklch */ color: oklch(34.2% 0.183 275.1);
Tailwind
colors: {
  custom: {
    50: '#745bb5',
    500: '#271b94',
    950: '#000000',
  },
}
SCSS
$custom: #271b94;
$custom-light: #745bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#271b94",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 245.95,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.18335,
    "h": 275.1
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#271B94
secondary
#B5C04B
accent
#EC3CDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271B94

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

Preview Lab → · Contrast checker → · Palette generator →

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