#271C7D#271C7D

#271C7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.154 H 278.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#271C7D
RGBrgb(39, 28, 125)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(68.8%, 77.6%, 0%, 51%)
CIE-LABlab(18.98, 35.98, -52.74)
CIE-LCHlch(18.98, 63.84, 304.30°)
OKLaboklab(31.72% 0.0217 -0.1523)
OKLCHoklch(31.72% 0.154 278.1)
XYZxyz(4.9524, 2.7421, 19.6664)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7D #727D1C
analogous
#1C427D #271C7D #571C7D
triadic
#271C7D #7D271C #1C7D27
tetradic
#271C7D #7D1C42 #727D1C #1C7D57
square
#271C7D #7D1C42 #727D1C #1C7D57
split-complementary
#271C7D #7D571C #427D1C
monochromatic
#080619 #17114B #271C7D #3727AF #503FD4

Accessibility & contrast

On white

13.56
#271C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C7D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7D#FFFFFF#000000##FFFFFF
##271C7D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271c7d;
/* rgb */ color: rgb(39, 28, 125);
/* oklch */ color: oklch(31.7% 0.154 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e5aa4',
    500: '#271c7d',
    950: '#000000',
  },
}
SCSS
$custom: #271c7d;
$custom-light: #6e5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7d",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 246.804,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.31724,
    "c": 0.15387,
    "h": 278.1
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#271C7D
secondary
#A4B144
accent
#E641D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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