#271F70#271F70

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

Color values

HEX#271F70
RGBrgb(39, 31, 112)
HSLhsl(246, 57%, 28%)
HSVhsv(246, 72%, 44%)
CMYKcmyk(65.2%, 72.3%, 0%, 56.1%)
CIE-LABlab(18.28, 29.71, -45.55)
CIE-LCHlch(18.28, 54.38, 303.12°)
OKLaboklab(30.82% 0.0222 -0.1313)
OKLCHoklch(30.82% 0.133 279.6)
XYZxyz(4.2504, 2.5808, 15.6003)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F70 #68701F
analogous
#1F3F70 #271F70 #4F1F70
triadic
#271F70 #70271F #1F7027
tetradic
#271F70 #701F3F #68701F #1F704F
square
#271F70 #701F3F #68701F #1F704F
split-complementary
#271F70 #704F1F #3F701F
monochromatic
#080718 #161240 #271F70 #382CA0 #4D3FCA

Accessibility & contrast

On white

13.85
#271F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F70
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F70#FFFFFF#000000##FFFFFF
##271F701.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271f70;
/* rgb */ color: rgb(39, 31, 112);
/* oklch */ color: oklch(30.8% 0.133 279.6);
Tailwind
colors: {
  custom: {
    50: '#6b5b9a',
    500: '#271f70',
    950: '#000000',
  },
}
SCSS
$custom: #271f70;
$custom-light: #6b5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#271f70",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 245.926,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30819,
    "c": 0.13319,
    "h": 279.6
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#271F70
secondary
#9BA447
accent
#E048D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271F70

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

Preview Lab → · Contrast checker → · Palette generator →

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