#271E7E#271E7E

#271E7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.153 H 277.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#271E7E
RGBrgb(39, 30, 126)
HSLhsl(246, 62%, 31%)
HSVhsv(246, 76%, 49%)
CMYKcmyk(69%, 76.2%, 0%, 50.6%)
CIE-LABlab(19.50, 35.15, -52.52)
CIE-LCHlch(19.50, 63.20, 303.79°)
OKLaboklab(32.12% 0.0202 -0.1517)
OKLCHoklch(32.12% 0.153 277.6)
XYZxyz(5.0656, 2.8658, 20.0208)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E7E #757E1E
analogous
#1E457E #271E7E #571E7E
triadic
#271E7E #7E271E #1E7E27
tetradic
#271E7E #7E1E45 #757E1E #1E7E57
square
#271E7E #7E1E45 #757E1E #1E7E57
split-complementary
#271E7E #7E571E #457E1E
monochromatic
#08061B #18124D #271E7E #362AAF #5144D2

Accessibility & contrast

On white

13.35
#271E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E7E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E7E#FFFFFF#000000##FFFFFF
##271E7E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.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: #271e7e;
/* rgb */ color: rgb(39, 30, 126);
/* oklch */ color: oklch(32.1% 0.153 277.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ba4',
    500: '#271e7e',
    950: '#000000',
  },
}
SCSS
$custom: #271e7e;
$custom-light: #6e5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#271e7e",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 245.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.15305,
    "h": 277.6
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#271E7E
secondary
#A7B147
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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