#271E9E#271E9E

#271E9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.193 H 273.7°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#271E9E
RGBrgb(39, 30, 158)
HSLhsl(244, 68%, 37%)
HSVhsv(244, 81%, 62%)
CMYKcmyk(75.3%, 81%, 0%, 38%)
CIE-LABlab(23.09, 45.67, -66.51)
CIE-LCHlch(23.09, 80.68, 304.48°)
OKLaboklab(35.71% 0.0124 -0.1924)
OKLCHoklch(35.71% 0.193 273.7)
XYZxyz(7.4705, 3.8277, 32.6862)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E9E #959E1E
analogous
#1E559E #271E9E #671E9E
triadic
#271E9E #9E271E #1E9E27
tetradic
#271E9E #9E1E55 #959E1E #1E9E67
square
#271E9E #9E1E55 #959E1E #1E9E67
split-complementary
#271E9E #9E671E #559E1E
monochromatic
#0E0A37 #1A146B #271E9E #3428D1 #6157DF

Accessibility & contrast

On white

11.89
#271E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#271E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E9E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E9E#FFFFFF#000000##FFFFFF
##271E9E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271e9e;
/* rgb */ color: rgb(39, 30, 158);
/* oklch */ color: oklch(35.7% 0.193 273.7);
Tailwind
colors: {
  custom: {
    50: '#765dbc',
    500: '#271e9e',
    950: '#000000',
  },
}
SCSS
$custom: #271e9e;
$custom-light: #765dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#271e9e",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 244.219,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35708,
    "c": 0.19281,
    "h": 273.7
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#271E9E
secondary
#BBC355
accent
#EB3DDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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