#271E7C#271E7C

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

Color values

HEX#271E7C
RGBrgb(39, 30, 124)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 76%, 49%)
CMYKcmyk(68.5%, 75.8%, 0%, 51.4%)
CIE-LABlab(19.29, 34.47, -51.60)
CIE-LCHlch(19.29, 62.06, 303.75°)
OKLaboklab(31.91% 0.0206 -0.149)
OKLCHoklch(31.91% 0.15 277.9)
XYZxyz(4.9379, 2.8147, 19.3479)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E7C #737C1E
analogous
#1E447C #271E7C #561E7C
triadic
#271E7C #7C271E #1E7C27
tetradic
#271E7C #7C1E44 #737C1E #1E7C56
square
#271E7C #7C1E44 #737C1E #1E7C56
split-complementary
#271E7C #7C561E #447C1E
monochromatic
#080619 #18124B #271E7C #362AAD #5143D1

Accessibility & contrast

On white

13.44
#271E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E7C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E7C#FFFFFF#000000##FFFFFF
##271E7C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271e7c;
/* rgb */ color: rgb(39, 30, 124);
/* oklch */ color: oklch(31.9% 0.150 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e5ba3',
    500: '#271e7c',
    950: '#000000',
  },
}
SCSS
$custom: #271e7c;
$custom-light: #6e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#271e7c",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 245.745,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31909,
    "c": 0.15045,
    "h": 277.9
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#271E7C
secondary
#A5AF46
accent
#E444D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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