#271B75#271B75

#271B75 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.145 H 279.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#271B75
RGBrgb(39, 27, 117)
HSLhsl(248, 63%, 28%)
HSVhsv(248, 77%, 46%)
CMYKcmyk(66.7%, 76.9%, 0%, 54.1%)
CIE-LABlab(17.91, 33.87, -49.38)
CIE-LCHlch(17.91, 59.88, 304.45°)
OKLaboklab(30.71% 0.0243 -0.1425)
OKLCHoklch(30.71% 0.145 279.7)
XYZxyz(4.4385, 2.4992, 17.0747)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B75 #69751B
analogous
#1B3C75 #271B75 #541B75
triadic
#271B75 #75271B #1B7527
tetradic
#271B75 #751B3C #69751B #1B7554
square
#271B75 #751B3C #69751B #1B7554
split-complementary
#271B75 #75541B #3C751B
monochromatic
#080619 #161043 #271B75 #3826A7 #4D39D1

Accessibility & contrast

On white

14.00
#271B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B75
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B75#FFFFFF#000000##FFFFFF
##271B751.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271b75;
/* rgb */ color: rgb(39, 27, 117);
/* oklch */ color: oklch(30.7% 0.145 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d599e',
    500: '#271b75',
    950: '#000000',
  },
}
SCSS
$custom: #271b75;
$custom-light: #6d599e;
$custom-dark: #000000;
JSON
{
  "hex": "#271b75",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 248,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30714,
    "c": 0.14456,
    "h": 279.7
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#271B75
secondary
#9CA942
accent
#E642D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271B75

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

Preview Lab → · Contrast checker → · Palette generator →

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