#271F9E#271F9E

#271F9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.192 H 273.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#271F9E
RGBrgb(39, 31, 158)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 80%, 62%)
CMYKcmyk(75.3%, 80.4%, 0%, 38%)
CIE-LABlab(23.27, 45.16, -66.22)
CIE-LCHlch(23.27, 80.16, 304.29°)
OKLaboklab(35.83% 0.0121 -0.1916)
OKLCHoklch(35.83% 0.192 273.6)
XYZxyz(7.4962, 3.8792, 32.6948)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F9E #969E1F
analogous
#1F569E #271F9E #671F9E
triadic
#271F9E #9E271F #1F9E27
tetradic
#271F9E #9E1F56 #969E1F #1F9E67
square
#271F9E #9E1F56 #969E1F #1F9E67
split-complementary
#271F9E #9E671F #569E1F
monochromatic
#0E0B38 #1A156B #271F9E #3429D1 #6159DE

Accessibility & contrast

On white

11.82
#271F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#271F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F9E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F9E#FFFFFF#000000##FFFFFF
##271F9E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271f9e;
/* rgb */ color: rgb(39, 31, 158);
/* oklch */ color: oklch(35.8% 0.192 273.6);
Tailwind
colors: {
  custom: {
    50: '#765ebc',
    500: '#271f9e',
    950: '#000000',
  },
}
SCSS
$custom: #271f9e;
$custom-light: #765ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#271f9e",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 243.78,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35829,
    "c": 0.19196,
    "h": 273.6
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#271F9E
secondary
#BCC256
accent
#EA3EDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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