#271E9D#271E9D

#271E9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.192 H 273.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#271E9D
RGBrgb(39, 30, 157)
HSLhsl(244, 68%, 37%)
HSVhsv(244, 81%, 62%)
CMYKcmyk(75.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(22.98, 45.35, -66.10)
CIE-LCHlch(22.98, 80.16, 304.46°)
OKLaboklab(35.59% 0.0127 -0.1912)
OKLCHoklch(35.59% 0.192 273.8)
XYZxyz(7.3848, 3.7934, 32.2348)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E9D #949D1E
analogous
#1E559D #271E9D #671E9D
triadic
#271E9D #9D271E #1E9D27
tetradic
#271E9D #9D1E55 #949D1E #1E9D67
square
#271E9D #9D1E55 #949D1E #1E9D67
split-complementary
#271E9D #9D671E #559D1E
monochromatic
#0D0A36 #1A146A #271E9D #3428D0 #6057DF

Accessibility & contrast

On white

11.94
#271E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#271E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E9D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E9D#FFFFFF#000000##FFFFFF
##271E9D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271e9d;
/* rgb */ color: rgb(39, 30, 157);
/* oklch */ color: oklch(35.6% 0.192 273.8);
Tailwind
colors: {
  custom: {
    50: '#765dbb',
    500: '#271e9d',
    950: '#000000',
  },
}
SCSS
$custom: #271e9d;
$custom-light: #765dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#271e9d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 244.252,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.19161,
    "h": 273.8
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#271E9D
secondary
#BBC254
accent
#EB3DDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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