#271E95#271E95

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

Color values

HEX#271E95
RGBrgb(39, 30, 149)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73.8%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.05, 42.79, -62.71)
CIE-LCHlch(22.05, 75.92, 304.30°)
OKLaboklab(34.67% 0.0147 -0.1814)
OKLCHoklch(34.67% 0.182 274.6)
XYZxyz(6.7240, 3.5291, 28.7548)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E95 #8C951E
analogous
#1E5095 #271E95 #631E95
triadic
#271E95 #95271E #1E9527
tetradic
#271E95 #951E50 #8C951E #1E9563
square
#271E95 #951E50 #8C951E #1E9563
split-complementary
#271E95 #95631E #50951E
monochromatic
#0C092F #1A1462 #271E95 #3428C8 #5C51DC

Accessibility & contrast

On white

12.31
#271E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#271E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E95
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E95#FFFFFF#000000##FFFFFF
##271E951.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271e95;
/* rgb */ color: rgb(39, 30, 149);
/* oklch */ color: oklch(34.7% 0.182 274.6);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#271e95',
    950: '#000000',
  },
}
SCSS
$custom: #271e95;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#271e95",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 244.538,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34675,
    "c": 0.18197,
    "h": 274.6
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#271E95
secondary
#B7BF50
accent
#E93EDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271E95

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

Preview Lab → · Contrast checker → · Palette generator →

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