#271D70#271D70

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

Color values

HEX#271D70
RGBrgb(39, 29, 112)
HSLhsl(247, 59%, 28%)
HSVhsv(247, 74%, 44%)
CMYKcmyk(65.2%, 74.1%, 0%, 56.1%)
CIE-LABlab(17.83, 30.96, -46.30)
CIE-LCHlch(17.83, 55.70, 303.78°)
OKLaboklab(30.49% 0.0238 -0.1335)
OKLCHoklch(30.49% 0.136 280.1)
XYZxyz(4.1998, 2.4796, 15.5834)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D70 #66701D
analogous
#1D3C70 #271D70 #501D70
triadic
#271D70 #70271D #1D7027
tetradic
#271D70 #701D3C #66701D #1D7050
square
#271D70 #701D3C #66701D #1D7050
split-complementary
#271D70 #70501D #3C701D
monochromatic
#080618 #16103F #271D70 #382AA1 #4D3BCC

Accessibility & contrast

On white

14.04
#271D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D70
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D70#FFFFFF#000000##FFFFFF
##271D701.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271d70;
/* rgb */ color: rgb(39, 29, 112);
/* oklch */ color: oklch(30.5% 0.136 280.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a9a',
    500: '#271d70',
    950: '#000000',
  },
}
SCSS
$custom: #271d70;
$custom-light: #6b5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#271d70",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 247.229,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.13562,
    "h": 280.1
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#271D70
secondary
#99A444
accent
#E246CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271D70

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

Preview Lab → · Contrast checker → · Palette generator →

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