#271D9E#271D9E

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

Color values

HEX#271D9E
RGBrgb(39, 29, 158)
HSLhsl(245, 69%, 37%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.3%, 81.6%, 0%, 38%)
CIE-LABlab(22.92, 46.17, -66.80)
CIE-LCHlch(22.92, 81.20, 304.65°)
OKLaboklab(35.59% 0.0128 -0.1932)
OKLCHoklch(35.59% 0.194 273.8)
XYZxyz(7.4456, 3.7779, 32.6779)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D9E #949E1D
analogous
#1D549E #271D9E #681D9E
triadic
#271D9E #9E271D #1D9E27
tetradic
#271D9E #9E1D54 #949E1D #1D9E68
square
#271D9E #9E1D54 #949E1D #1D9E68
split-complementary
#271D9E #9E681D #549E1D
monochromatic
#0D0A37 #1A146A #271D9E #3426D2 #6056E0

Accessibility & contrast

On white

11.96
#271D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D9E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D9E#FFFFFF#000000##FFFFFF
##271D9E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d9e;
/* rgb */ color: rgb(39, 29, 158);
/* oklch */ color: oklch(35.6% 0.194 273.8);
Tailwind
colors: {
  custom: {
    50: '#765dbc',
    500: '#271d9e',
    950: '#000000',
  },
}
SCSS
$custom: #271d9e;
$custom-light: #765dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#271d9e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 244.651,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.19363,
    "h": 273.8
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#271D9E
secondary
#BBC354
accent
#EC3CDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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