#271D90#271D90

#271D90 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.177 H 275.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#271D90
RGBrgb(39, 29, 144)
HSLhsl(245, 66%, 34%)
HSVhsv(245, 80%, 56%)
CMYKcmyk(72.9%, 79.9%, 0%, 43.5%)
CIE-LABlab(21.29, 41.69, -60.87)
CIE-LCHlch(21.29, 73.78, 304.41°)
OKLaboklab(33.98% 0.0164 -0.176)
OKLCHoklch(33.98% 0.177 275.3)
XYZxyz(6.3084, 3.3231, 26.6891)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D90 #86901D
analogous
#1D4D90 #271D90 #611D90
triadic
#271D90 #90271D #1D9027
tetradic
#271D90 #901D4D #86901D #1D9061
square
#271D90 #901D4D #86901D #1D9061
split-complementary
#271D90 #90611D #4D901D
monochromatic
#0B082A #19135D #271D90 #3527C3 #594CDB

Accessibility & contrast

On white

12.61
#271D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D90
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D90#FFFFFF#000000##FFFFFF
##271D901.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271d90;
/* rgb */ color: rgb(39, 29, 144);
/* oklch */ color: oklch(34.0% 0.177 275.3);
Tailwind
colors: {
  custom: {
    50: '#735cb2',
    500: '#271d90',
    950: '#000000',
  },
}
SCSS
$custom: #271d90;
$custom-light: #735cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#271d90",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 245.217,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.17676,
    "h": 275.3
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#271D90
secondary
#B4BD4B
accent
#E93EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271D90

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

Preview Lab → · Contrast checker → · Palette generator →

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