#271E98#271E98

#271E98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.186 H 274.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#271E98
RGBrgb(39, 30, 152)
HSLhsl(244, 67%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(74.3%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.40, 43.75, -63.99)
CIE-LCHlch(22.40, 77.52, 304.36°)
OKLaboklab(35.02% 0.0139 -0.1851)
OKLCHoklch(35.02% 0.186 274.3)
XYZxyz(6.9666, 3.6262, 30.0324)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E98 #8F981E
analogous
#1E5298 #271E98 #641E98
triadic
#271E98 #98271E #1E9827
tetradic
#271E98 #981E52 #8F981E #1E9864
square
#271E98 #981E52 #8F981E #1E9864
split-complementary
#271E98 #98641E #52981E
monochromatic
#0D0A32 #1A1465 #271E98 #3428CB #5D53DD

Accessibility & contrast

On white

12.17
#271E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#271E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E98
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E98#FFFFFF#000000##FFFFFF
##271E981.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271e98;
/* rgb */ color: rgb(39, 30, 152);
/* oklch */ color: oklch(35.0% 0.186 274.3);
Tailwind
colors: {
  custom: {
    50: '#755db8',
    500: '#271e98',
    950: '#000000',
  },
}
SCSS
$custom: #271e98;
$custom-light: #755db8;
$custom-dark: #000000;
JSON
{
  "hex": "#271e98",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 244.426,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35017,
    "c": 0.1856,
    "h": 274.3
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#271E98
secondary
#B8C051
accent
#EA3EDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271E98

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

Preview Lab → · Contrast checker → · Palette generator →

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