#271C67#271C67

#271C67 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.125 H 282.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#271C67
RGBrgb(39, 28, 103)
HSLhsl(249, 57%, 26%)
HSVhsv(249, 73%, 40%)
CMYKcmyk(62.1%, 72.8%, 0%, 59.6%)
CIE-LABlab(16.70, 28.48, -42.26)
CIE-LCHlch(16.70, 50.97, 303.98°)
OKLaboklab(29.42% 0.0264 -0.1217)
OKLCHoklch(29.42% 0.125 282.2)
XYZxyz(3.6994, 2.2409, 13.0669)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C67 #5C671C
analogous
#1C3667 #271C67 #4C1C67
triadic
#271C67 #67271C #1C6727
tetradic
#271C67 #671C36 #5C671C #1C674C
square
#271C67 #671C36 #5C671C #1C674C
split-complementary
#271C67 #674C1C #36671C
monochromatic
#090718 #150F37 #271C67 #392997 #4B36C7

Accessibility & contrast

On white

14.50
#271C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271C67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C67
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C67#FFFFFF#000000##FFFFFF
##271C671.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#01303F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271c67;
/* rgb */ color: rgb(39, 28, 103);
/* oklch */ color: oklch(29.4% 0.125 282.2);
Tailwind
colors: {
  custom: {
    50: '#695993',
    500: '#271c67',
    950: '#000000',
  },
}
SCSS
$custom: #271c67;
$custom-light: #695993;
$custom-dark: #000000;
JSON
{
  "hex": "#271c67",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 103
  },
  "hsl": {
    "h": 248.8,
    "s": 57.252,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29416,
    "c": 0.12454,
    "h": 282.2
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#271C67
secondary
#8F9C43
accent
#E147CA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C67

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

Preview Lab → · Contrast checker → · Palette generator →

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