#271D73#271D73

#271D73 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 279.6°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#271D73
RGBrgb(39, 29, 115)
HSLhsl(247, 60%, 28%)
HSVhsv(247, 75%, 45%)
CMYKcmyk(66.1%, 74.8%, 0%, 54.9%)
CIE-LABlab(18.13, 32.00, -47.73)
CIE-LCHlch(18.13, 57.46, 303.84°)
OKLaboklab(30.81% 0.0232 -0.1377)
OKLCHoklch(30.81% 0.14 279.6)
XYZxyz(4.3696, 2.5475, 16.4778)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D73 #69731D
analogous
#1D3E73 #271D73 #521D73
triadic
#271D73 #73271D #1D7327
tetradic
#271D73 #731D3E #69731D #1D7352
square
#271D73 #731D3E #69731D #1D7352
split-complementary
#271D73 #73521D #3E731D
monochromatic
#080618 #161142 #271D73 #3829A4 #4D3CCE

Accessibility & contrast

On white

13.91
#271D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D73
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D73#FFFFFF#000000##FFFFFF
##271D731.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271d73;
/* rgb */ color: rgb(39, 29, 115);
/* oklch */ color: oklch(30.8% 0.140 279.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a9c',
    500: '#271d73',
    950: '#000000',
  },
}
SCSS
$custom: #271d73;
$custom-light: #6c5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#271d73",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 246.977,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30805,
    "c": 0.13966,
    "h": 279.6
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#271D73
secondary
#9CA745
accent
#E345D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271D73

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

Preview Lab → · Contrast checker → · Palette generator →

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