#271C7E#271C7E

#271C7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.155 H 277.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#271C7E
RGBrgb(39, 28, 126)
HSLhsl(247, 64%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(69%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.09, 36.31, -53.20)
CIE-LCHlch(19.09, 64.41, 304.31°)
OKLaboklab(31.83% 0.0214 -0.1537)
OKLCHoklch(31.83% 0.155 277.9)
XYZxyz(5.0166, 2.7678, 20.0045)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7E #737E1C
analogous
#1C427E #271C7E #581C7E
triadic
#271C7E #7E271C #1C7E27
tetradic
#271C7E #7E1C42 #737E1C #1C7E58
square
#271C7E #7E1C42 #737E1C #1C7E58
split-complementary
#271C7E #7E581C #427E1C
monochromatic
#08061A #18114C #271C7E #3627B0 #5140D5

Accessibility & contrast

On white

13.52
#271C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C7E
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7E#FFFFFF#000000##FFFFFF
##271C7E1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271c7e;
/* rgb */ color: rgb(39, 28, 126);
/* oklch */ color: oklch(31.8% 0.155 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#271c7e',
    950: '#000000',
  },
}
SCSS
$custom: #271c7e;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7e",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 246.735,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31834,
    "c": 0.15516,
    "h": 277.9
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#271C7E
secondary
#A5B244
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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