#271F9D#271F9D

#271F9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.191 H 273.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#271F9D
RGBrgb(39, 31, 157)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 80%, 62%)
CMYKcmyk(75.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.15, 44.84, -65.80)
CIE-LCHlch(23.15, 79.63, 304.27°)
OKLaboklab(35.71% 0.0123 -0.1904)
OKLCHoklch(35.71% 0.191 273.7)
XYZxyz(7.4105, 3.8449, 32.2433)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F9D #959D1F
analogous
#1F569D #271F9D #661F9D
triadic
#271F9D #9D271F #1F9D27
tetradic
#271F9D #9D1F56 #959D1F #1F9D66
square
#271F9D #9D1F56 #959D1F #1F9D66
split-complementary
#271F9D #9D661F #569D1F
monochromatic
#0E0B37 #1A156A #271F9D #3429D0 #6158DE

Accessibility & contrast

On white

11.87
#271F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#271F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F9D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F9D#FFFFFF#000000##FFFFFF
##271F9D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f9d;
/* rgb */ color: rgb(39, 31, 157);
/* oklch */ color: oklch(35.7% 0.191 273.7);
Tailwind
colors: {
  custom: {
    50: '#765ebb',
    500: '#271f9d',
    950: '#000000',
  },
}
SCSS
$custom: #271f9d;
$custom-light: #765ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#271f9d",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 243.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35714,
    "c": 0.19077,
    "h": 273.7
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#271F9D
secondary
#BBC256
accent
#EA3EDF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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