#271F97#271F97

#271F97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 274.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#271F97
RGBrgb(39, 31, 151)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 79%, 59%)
CMYKcmyk(74.2%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.46, 42.91, -63.27)
CIE-LCHlch(22.46, 76.44, 304.15°)
OKLaboklab(35.03% 0.0138 -0.183)
OKLCHoklch(35.03% 0.184 274.3)
XYZxyz(6.9107, 3.6450, 29.6115)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F97 #8F971F
analogous
#1F5397 #271F97 #631F97
triadic
#271F97 #97271F #1F9727
tetradic
#271F97 #971F53 #8F971F #1F9763
square
#271F97 #971F53 #8F971F #1F9763
split-complementary
#271F97 #97631F #53971F
monochromatic
#0D0A31 #1A1564 #271F97 #3429CA #5D54DC

Accessibility & contrast

On white

12.14
#271F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#271F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F97
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F97#FFFFFF#000000##FFFFFF
##271F971.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271f97;
/* rgb */ color: rgb(39, 31, 151);
/* oklch */ color: oklch(35.0% 0.184 274.3);
Tailwind
colors: {
  custom: {
    50: '#745db7',
    500: '#271f97',
    950: '#000000',
  },
}
SCSS
$custom: #271f97;
$custom-light: #745db7;
$custom-dark: #000000;
JSON
{
  "hex": "#271f97",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 244,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.18351,
    "h": 274.3
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#271F97
secondary
#B8BF52
accent
#E93FDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271F97

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

Preview Lab → · Contrast checker → · Palette generator →

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