#271E93#271E93

#271E93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.180 H 274.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#271E93
RGBrgb(39, 30, 147)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73.5%, 79.6%, 0%, 42.4%)
CIE-LABlab(21.82, 42.14, -61.86)
CIE-LCHlch(21.82, 74.84, 304.26°)
OKLaboklab(34.45% 0.0152 -0.1789)
OKLCHoklch(34.45% 0.18 274.8)
XYZxyz(6.5657, 3.4658, 27.9211)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E93 #8A931E
analogous
#1E5093 #271E93 #611E93
triadic
#271E93 #93271E #1E9327
tetradic
#271E93 #931E50 #8A931E #1E9361
square
#271E93 #931E50 #8A931E #1E9361
split-complementary
#271E93 #93611E #50931E
monochromatic
#0C092D #1A1460 #271E93 #3428C6 #5B50DB

Accessibility & contrast

On white

12.40
#271E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E93
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E93#FFFFFF#000000##FFFFFF
##271E931.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271e93;
/* rgb */ color: rgb(39, 30, 147);
/* oklch */ color: oklch(34.4% 0.180 274.8);
Tailwind
colors: {
  custom: {
    50: '#735db4',
    500: '#271e93',
    950: '#000000',
  },
}
SCSS
$custom: #271e93;
$custom-light: #735db4;
$custom-dark: #000000;
JSON
{
  "hex": "#271e93",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 244.615,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.17952,
    "h": 274.8
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#271E93
secondary
#B6BE4F
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271E93

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

Preview Lab → · Contrast checker → · Palette generator →

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