#271E96#271E96

#271E96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.183 H 274.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#271E96
RGBrgb(39, 30, 150)
HSLhsl(245, 67%, 35%)
HSVhsv(245, 80%, 59%)
CMYKcmyk(74%, 80%, 0%, 41.2%)
CIE-LABlab(22.16, 43.11, -63.14)
CIE-LCHlch(22.16, 76.45, 304.32°)
OKLaboklab(34.79% 0.0144 -0.1826)
OKLCHoklch(34.79% 0.183 274.5)
XYZxyz(6.8042, 3.5612, 29.1770)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E96 #8D961E
analogous
#1E5196 #271E96 #631E96
triadic
#271E96 #96271E #1E9627
tetradic
#271E96 #961E51 #8D961E #1E9663
square
#271E96 #961E51 #8D961E #1E9663
split-complementary
#271E96 #96631E #51961E
monochromatic
#0C0A30 #1A1463 #271E96 #3428C9 #5C52DC

Accessibility & contrast

On white

12.26
#271E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E96
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E96#FFFFFF#000000##FFFFFF
##271E961.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271e96;
/* rgb */ color: rgb(39, 30, 150);
/* oklch */ color: oklch(34.8% 0.183 274.5);
Tailwind
colors: {
  custom: {
    50: '#745db6',
    500: '#271e96',
    950: '#000000',
  },
}
SCSS
$custom: #271e96;
$custom-light: #745db6;
$custom-dark: #000000;
JSON
{
  "hex": "#271e96",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 244.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.18319,
    "h": 274.5
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271E96

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

Preview Lab → · Contrast checker → · Palette generator →

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