#271F96#271F96

#271F96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.182 H 274.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#271F96
RGBrgb(39, 31, 150)
HSLhsl(244, 66%, 35%)
HSVhsv(244, 79%, 59%)
CMYKcmyk(74%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.35, 42.58, -62.84)
CIE-LCHlch(22.35, 75.91, 304.12°)
OKLaboklab(34.92% 0.014 -0.1817)
OKLCHoklch(34.92% 0.182 274.4)
XYZxyz(6.8299, 3.6126, 29.1856)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F96 #8E961F
analogous
#1F5296 #271F96 #631F96
triadic
#271F96 #96271F #1F9627
tetradic
#271F96 #961F52 #8E961F #1F9663
square
#271F96 #961F52 #8E961F #1F9663
split-complementary
#271F96 #96631F #52961F
monochromatic
#0D0A31 #1A1563 #271F96 #3429C9 #5D54DC

Accessibility & contrast

On white

12.19
#271F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#271F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F96
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F96#FFFFFF#000000##FFFFFF
##271F961.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271f96;
/* rgb */ color: rgb(39, 31, 150);
/* oklch */ color: oklch(34.9% 0.182 274.4);
Tailwind
colors: {
  custom: {
    50: '#745db6',
    500: '#271f96',
    950: '#000000',
  },
}
SCSS
$custom: #271f96;
$custom-light: #745db6;
$custom-dark: #000000;
JSON
{
  "hex": "#271f96",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 244.034,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.18229,
    "h": 274.4
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271F96

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

Preview Lab → · Contrast checker → · Palette generator →

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