#271D7E#271D7E

#271D7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.154 H 277.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#271D7E
RGBrgb(39, 29, 126)
HSLhsl(246, 63%, 30%)
HSVhsv(246, 77%, 49%)
CMYKcmyk(69%, 77%, 0%, 50.6%)
CIE-LABlab(19.29, 35.74, -52.87)
CIE-LCHlch(19.29, 63.81, 304.06°)
OKLaboklab(31.98% 0.0208 -0.1527)
OKLCHoklch(31.98% 0.154 277.8)
XYZxyz(5.0407, 2.8160, 20.0125)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D7E #747E1D
analogous
#1D437E #271D7E #581D7E
triadic
#271D7E #7E271D #1D7E27
tetradic
#271D7E #7E1D43 #747E1D #1D7E58
square
#271D7E #7E1D43 #747E1D #1D7E58
split-complementary
#271D7E #7E581D #437E1D
monochromatic
#08061B #18124C #271D7E #3628B0 #5142D3

Accessibility & contrast

On white

13.43
#271D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D7E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D7E#FFFFFF#000000##FFFFFF
##271D7E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271d7e;
/* rgb */ color: rgb(39, 29, 126);
/* oklch */ color: oklch(32.0% 0.154 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f5ba4',
    500: '#271d7e',
    950: '#000000',
  },
}
SCSS
$custom: #271d7e;
$custom-light: #6f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#271d7e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 246.186,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31977,
    "c": 0.15412,
    "h": 277.8
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#271D7E
secondary
#A6B145
accent
#E642D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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