#271F9A#271F9A

#271F9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.187 H 274.0°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#271F9A
RGBrgb(39, 31, 154)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(74.7%, 79.9%, 0%, 39.6%)
CIE-LABlab(22.81, 43.88, -64.54)
CIE-LCHlch(22.81, 78.04, 304.21°)
OKLaboklab(35.37% 0.013 -0.1867)
OKLCHoklch(35.37% 0.187 274)
XYZxyz(7.1575, 3.7437, 30.9110)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F9A #929A1F
analogous
#1F559A #271F9A #651F9A
triadic
#271F9A #9A271F #1F9A27
tetradic
#271F9A #9A1F55 #929A1F #1F9A65
square
#271F9A #9A1F55 #929A1F #1F9A65
split-complementary
#271F9A #9A651F #559A1F
monochromatic
#0D0A34 #1A1567 #271F9A #3429CD #5F56DD

Accessibility & contrast

On white

12.01
#271F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#271F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F9A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F9A#FFFFFF#000000##FFFFFF
##271F9A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271f9a;
/* rgb */ color: rgb(39, 31, 154);
/* oklch */ color: oklch(35.4% 0.187 274.0);
Tailwind
colors: {
  custom: {
    50: '#755eb9',
    500: '#271f9a',
    950: '#000000',
  },
}
SCSS
$custom: #271f9a;
$custom-light: #755eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#271f9a",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 243.902,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35371,
    "c": 0.18715,
    "h": 274
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#271F9A
secondary
#BAC154
accent
#E93EDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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