#271E85#271E85

#271E85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.162 H 276.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#271E85
RGBrgb(39, 30, 133)
HSLhsl(245, 63%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(70.7%, 77.4%, 0%, 47.8%)
CIE-LABlab(20.25, 37.52, -55.71)
CIE-LCHlch(20.25, 67.16, 303.96°)
OKLaboklab(32.88% 0.0186 -0.161)
OKLCHoklch(32.88% 0.162 276.6)
XYZxyz(5.5332, 3.0528, 22.4834)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E85 #7C851E
analogous
#1E4985 #271E85 #5B1E85
triadic
#271E85 #85271E #1E8527
tetradic
#271E85 #851E49 #7C851E #1E855B
square
#271E85 #851E49 #7C851E #1E855B
split-complementary
#271E85 #855B1E #49851E
monochromatic
#0A0721 #181353 #271E85 #3629B7 #5448D6

Accessibility & contrast

On white

13.04
#271E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E85
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E85#FFFFFF#000000##FFFFFF
##271E851.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271e85;
/* rgb */ color: rgb(39, 30, 133);
/* oklch */ color: oklch(32.9% 0.162 276.6);
Tailwind
colors: {
  custom: {
    50: '#705caa',
    500: '#271e85',
    950: '#000000',
  },
}
SCSS
$custom: #271e85;
$custom-light: #705caa;
$custom-dark: #000000;
JSON
{
  "hex": "#271e85",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 245.243,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32884,
    "c": 0.16206,
    "h": 276.6
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#271E85
secondary
#AEB847
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E85

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

Preview Lab → · Contrast checker → · Palette generator →

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