#271B9F#271B9F

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

Color values

HEX#271B9F
RGBrgb(39, 27, 159)
HSLhsl(245, 71%, 36%)
HSVhsv(245, 83%, 62%)
CMYKcmyk(75.5%, 83%, 0%, 37.6%)
CIE-LABlab(22.71, 47.44, -67.75)
CIE-LCHlch(22.71, 82.71, 305.00°)
OKLaboklab(35.48% 0.0132 -0.196)
OKLCHoklch(35.48% 0.196 273.9)
XYZxyz(7.4846, 3.7176, 33.1173)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B9F #939F1B
analogous
#1B519F #271B9F #691B9F
triadic
#271B9F #9F271B #1B9F27
tetradic
#271B9F #9F1B51 #939F1B #1B9F69
square
#271B9F #9F1B51 #939F1B #1B9F69
split-complementary
#271B9F #9F691B #519F1B
monochromatic
#0D0936 #1A126B #271B9F #3424D3 #6053E2

Accessibility & contrast

On white

12.04
#271B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#271B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B9F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B9F#FFFFFF#000000##FFFFFF
##271B9F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271b9f;
/* rgb */ color: rgb(39, 27, 159);
/* oklch */ color: oklch(35.5% 0.196 273.9);
Tailwind
colors: {
  custom: {
    50: '#775cbd',
    500: '#271b9f',
    950: '#000000',
  },
}
SCSS
$custom: #271b9f;
$custom-light: #775cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271b9f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 245.455,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3548,
    "c": 0.19639,
    "h": 273.9
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#271B9F
secondary
#BAC551
accent
#EE3ADD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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