#271F9B#271F9B

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

Color values

HEX#271F9B
RGBrgb(39, 31, 155)
HSLhsl(244, 67%, 36%)
HSVhsv(244, 80%, 61%)
CMYKcmyk(74.8%, 80%, 0%, 39.2%)
CIE-LABlab(22.92, 44.20, -64.96)
CIE-LCHlch(22.92, 78.58, 304.23°)
OKLaboklab(35.49% 0.0128 -0.1879)
OKLCHoklch(35.49% 0.188 273.9)
XYZxyz(7.2411, 3.7771, 31.3514)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F9B #939B1F
analogous
#1F559B #271F9B #651F9B
triadic
#271F9B #9B271F #1F9B27
tetradic
#271F9B #9B1F55 #939B1F #1F9B65
square
#271F9B #9B1F55 #939B1F #1F9B65
split-complementary
#271F9B #9B651F #559B1F
monochromatic
#0D0B35 #1A1568 #271F9B #3429CE #6057DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271F9B#FFFFFF#000000##FFFFFF
##271F9B1.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)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271f9b;
/* rgb */ color: rgb(39, 31, 155);
/* oklch */ color: oklch(35.5% 0.188 273.9);
Tailwind
colors: {
  custom: {
    50: '#755eba',
    500: '#271f9b',
    950: '#000000',
  },
}
SCSS
$custom: #271f9b;
$custom-light: #755eba;
$custom-dark: #000000;
JSON
{
  "hex": "#271f9b",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 243.871,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35485,
    "c": 0.18835,
    "h": 273.9
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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