#271B73#271B73

#271B73 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.142 H 280.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#271B73
RGBrgb(39, 27, 115)
HSLhsl(248, 62%, 28%)
HSVhsv(248, 77%, 45%)
CMYKcmyk(66.1%, 76.5%, 0%, 54.9%)
CIE-LABlab(17.70, 33.19, -48.44)
CIE-LCHlch(17.70, 58.72, 304.42°)
OKLaboklab(30.5% 0.0247 -0.1398)
OKLCHoklch(30.5% 0.142 280)
XYZxyz(4.3222, 2.4527, 16.4620)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B73 #67731B
analogous
#1B3B73 #271B73 #531B73
triadic
#271B73 #73271B #1B7327
tetradic
#271B73 #731B3B #67731B #1B7353
square
#271B73 #731B3B #67731B #1B7353
split-complementary
#271B73 #73531B #3B731B
monochromatic
#080619 #160F41 #271B73 #3827A5 #4D38D0

Accessibility & contrast

On white

14.09
#271B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B73
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B73#FFFFFF#000000##FFFFFF
##271B731.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271b73;
/* rgb */ color: rgb(39, 27, 115);
/* oklch */ color: oklch(30.5% 0.142 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c599c',
    500: '#271b73',
    950: '#000000',
  },
}
SCSS
$custom: #271b73;
$custom-light: #6c599c;
$custom-dark: #000000;
JSON
{
  "hex": "#271b73",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 248.182,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.305,
    "c": 0.14193,
    "h": 280
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

primary
#271B73
secondary
#9AA842
accent
#E543CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271B73

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

Preview Lab → · Contrast checker → · Palette generator →

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