#271E7B#271E7B

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

Color values

HEX#271E7B
RGBrgb(39, 30, 123)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 76%, 48%)
CMYKcmyk(68.3%, 75.6%, 0%, 51.8%)
CIE-LABlab(19.18, 34.13, -51.14)
CIE-LCHlch(19.18, 61.48, 303.72°)
OKLaboklab(31.8% 0.0208 -0.1477)
OKLCHoklch(31.8% 0.149 278)
XYZxyz(4.8750, 2.7895, 19.0166)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E7B #727B1E
analogous
#1E447B #271E7B #551E7B
triadic
#271E7B #7B271E #1E7B27
tetradic
#271E7B #7B1E44 #727B1E #1E7B55
square
#271E7B #7B1E44 #727B1E #1E7B55
split-complementary
#271E7B #7B551E #447B1E
monochromatic
#080619 #17124A #271E7B #372AAC #5042D1

Accessibility & contrast

On white

13.48
#271E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E7B
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E7B#FFFFFF#000000##FFFFFF
##271E7B1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271e7b;
/* rgb */ color: rgb(39, 30, 123);
/* oklch */ color: oklch(31.8% 0.149 278.0);
Tailwind
colors: {
  custom: {
    50: '#6e5ba2',
    500: '#271e7b',
    950: '#000000',
  },
}
SCSS
$custom: #271e7b;
$custom-light: #6e5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#271e7b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 245.806,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.31802,
    "c": 0.14913,
    "h": 278
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#271E7B
secondary
#A4AE46
accent
#E444D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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