#271B98#271B98

#271B98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.188 H 274.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#271B98
RGBrgb(39, 27, 152)
HSLhsl(246, 70%, 35%)
HSVhsv(246, 82%, 60%)
CMYKcmyk(74.3%, 82.2%, 0%, 40.4%)
CIE-LABlab(21.88, 45.26, -64.85)
CIE-LCHlch(21.88, 79.08, 304.91°)
OKLaboklab(34.66% 0.0151 -0.1875)
OKLCHoklch(34.66% 0.188 274.6)
XYZxyz(6.8943, 3.4815, 30.0083)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B98 #8C981B
analogous
#1B4D98 #271B98 #651B98
triadic
#271B98 #98271B #1B9827
tetradic
#271B98 #981B4D #8C981B #1B9865
square
#271B98 #981B4D #8C981B #1B9865
split-complementary
#271B98 #98651B #4D981B
monochromatic
#0C0930 #1A1264 #271B98 #3424CC #5C4EE0

Accessibility & contrast

On white

12.38
#271B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#271B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B98
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B98#FFFFFF#000000##FFFFFF
##271B981.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271b98;
/* rgb */ color: rgb(39, 27, 152);
/* oklch */ color: oklch(34.7% 0.188 274.6);
Tailwind
colors: {
  custom: {
    50: '#755bb8',
    500: '#271b98',
    950: '#000000',
  },
}
SCSS
$custom: #271b98;
$custom-light: #755bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271b98",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 245.76,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.18814,
    "h": 274.6
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#271B98
secondary
#B7C24D
accent
#ED3BDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271B98

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

Preview Lab → · Contrast checker → · Palette generator →

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