#271E70#271E70

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

Color values

HEX#271E70
RGBrgb(39, 30, 112)
HSLhsl(247, 58%, 28%)
HSVhsv(247, 73%, 44%)
CMYKcmyk(65.2%, 73.2%, 0%, 56.1%)
CIE-LABlab(18.05, 30.34, -45.93)
CIE-LCHlch(18.05, 55.04, 303.45°)
OKLaboklab(30.65% 0.023 -0.1324)
OKLCHoklch(30.65% 0.134 279.9)
XYZxyz(4.2247, 2.5294, 15.5917)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E70 #67701E
analogous
#1E3E70 #271E70 #501E70
triadic
#271E70 #70271E #1E7027
tetradic
#271E70 #701E3E #67701E #1E7050
square
#271E70 #701E3E #67701E #1E7050
split-complementary
#271E70 #70501E #3E701E
monochromatic
#080618 #161140 #271E70 #382BA0 #4D3DCB

Accessibility & contrast

On white

13.94
#271E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E70
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E70#FFFFFF#000000##FFFFFF
##271E701.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271e70;
/* rgb */ color: rgb(39, 30, 112);
/* oklch */ color: oklch(30.7% 0.134 279.9);
Tailwind
colors: {
  custom: {
    50: '#6b5b9a',
    500: '#271e70',
    950: '#000000',
  },
}
SCSS
$custom: #271e70;
$custom-light: #6b5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#271e70",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 112
  },
  "hsl": {
    "h": 246.585,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30654,
    "c": 0.13442,
    "h": 279.9
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#271E70
secondary
#9AA446
accent
#E147D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271E70

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

Preview Lab → · Contrast checker → · Palette generator →

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