#271E9A#271E9A

#271E9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.188 H 274.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#271E9A
RGBrgb(39, 30, 154)
HSLhsl(244, 67%, 36%)
HSVhsv(244, 81%, 60%)
CMYKcmyk(74.7%, 80.5%, 0%, 39.6%)
CIE-LABlab(22.63, 44.40, -64.84)
CIE-LCHlch(22.63, 78.58, 304.40°)
OKLaboklab(35.25% 0.0134 -0.1875)
OKLCHoklch(35.25% 0.188 274.1)
XYZxyz(7.1318, 3.6923, 30.9024)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E9A #919A1E
analogous
#1E539A #271E9A #651E9A
triadic
#271E9A #9A271E #1E9A27
tetradic
#271E9A #9A1E53 #919A1E #1E9A65
square
#271E9A #9A1E53 #919A1E #1E9A65
split-complementary
#271E9A #9A651E #539A1E
monochromatic
#0D0A34 #1A1467 #271E9A #3428CD #5F55DE

Accessibility & contrast

On white

12.08
#271E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#271E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E9A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E9A#FFFFFF#000000##FFFFFF
##271E9A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271e9a;
/* rgb */ color: rgb(39, 30, 154);
/* oklch */ color: oklch(35.2% 0.188 274.1);
Tailwind
colors: {
  custom: {
    50: '#755db9',
    500: '#271e9a',
    950: '#000000',
  },
}
SCSS
$custom: #271e9a;
$custom-light: #755db9;
$custom-dark: #000000;
JSON
{
  "hex": "#271e9a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 244.355,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35247,
    "c": 0.18802,
    "h": 274.1
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#271E9A
secondary
#B9C153
accent
#EA3EDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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