#271E7A#271E7A

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

Color values

HEX#271E7A
RGBrgb(39, 30, 122)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 75%, 48%)
CMYKcmyk(68%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.08, 33.79, -50.67)
CIE-LCHlch(19.08, 60.91, 303.70°)
OKLaboklab(31.7% 0.021 -0.1463)
OKLCHoklch(31.7% 0.148 278.2)
XYZxyz(4.8127, 2.7646, 18.6886)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E7A #717A1E
analogous
#1E437A #271E7A #551E7A
triadic
#271E7A #7A271E #1E7A27
tetradic
#271E7A #7A1E43 #717A1E #1E7A55
square
#271E7A #7A1E43 #717A1E #1E7A55
split-complementary
#271E7A #7A551E #437A1E
monochromatic
#080619 #171249 #271E7A #372AAB #5042D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271E7A#FFFFFF#000000##FFFFFF
##271E7A1.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)
#00327D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271e7a;
/* rgb */ color: rgb(39, 30, 122);
/* oklch */ color: oklch(31.7% 0.148 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ba1',
    500: '#271e7a',
    950: '#000000',
  },
}
SCSS
$custom: #271e7a;
$custom-light: #6e5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#271e7a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 245.87,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31696,
    "c": 0.14781,
    "h": 278.2
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#271E7A
secondary
#A3AE46
accent
#E444D4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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