#271E94#271E94

#271E94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.181 H 274.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#271E94
RGBrgb(39, 30, 148)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73.6%, 79.7%, 0%, 42%)
CIE-LABlab(21.93, 42.46, -62.29)
CIE-LCHlch(21.93, 75.38, 304.28°)
OKLaboklab(34.56% 0.0149 -0.1801)
OKLCHoklch(34.56% 0.181 274.7)
XYZxyz(6.6445, 3.4973, 28.3361)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E94 #8B941E
analogous
#1E5094 #271E94 #621E94
triadic
#271E94 #94271E #1E9427
tetradic
#271E94 #941E50 #8B941E #1E9462
square
#271E94 #941E50 #8B941E #1E9462
split-complementary
#271E94 #94621E #50941E
monochromatic
#0C092E #1A1461 #271E94 #3428C7 #5B51DC

Accessibility & contrast

On white

12.36
#271E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E94
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E94#FFFFFF#000000##FFFFFF
##271E941.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271e94;
/* rgb */ color: rgb(39, 30, 148);
/* oklch */ color: oklch(34.6% 0.181 274.7);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#271e94',
    950: '#000000',
  },
}
SCSS
$custom: #271e94;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#271e94",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 244.576,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34561,
    "c": 0.18075,
    "h": 274.7
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#271E94
secondary
#B6BF4F
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271E94

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

Preview Lab → · Contrast checker → · Palette generator →

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