#271E5E#271E5E

#271E5E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.109 H 283.6°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#271E5E
RGBrgb(39, 30, 94)
HSLhsl(248, 52%, 24%)
HSVhsv(248, 68%, 37%)
CMYKcmyk(58.5%, 68.1%, 0%, 63.1%)
CIE-LABlab(16.34, 24.04, -36.90)
CIE-LCHlch(16.34, 44.04, 303.08°)
OKLaboklab(28.9% 0.0257 -0.106)
OKLCHoklch(28.9% 0.109 283.6)
XYZxyz(3.3207, 2.1678, 10.8310)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E5E #555E1E
analogous
#1E355E #271E5E #471E5E
triadic
#271E5E #5E271E #1E5E27
tetradic
#271E5E #5E1E35 #555E1E #1E5E47
square
#271E5E #5E1E35 #555E1E #1E5E47
split-complementary
#271E5E #5E471E #355E1E
monochromatic
#0A0717 #140F30 #271E5E #3A2D8C #4D3CBB

Accessibility & contrast

On white

14.65
#271E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E5E
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E5E#FFFFFF#000000##FFFFFF
##271E5E1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#0E2E3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271e5e;
/* rgb */ color: rgb(39, 30, 94);
/* oklch */ color: oklch(28.9% 0.109 283.6);
Tailwind
colors: {
  custom: {
    50: '#675a8c',
    500: '#271e5e',
    950: '#000000',
  },
}
SCSS
$custom: #271e5e;
$custom-light: #675a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#271e5e",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 248.438,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28896,
    "c": 0.10903,
    "h": 283.6
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#271E5E
secondary
#889345
accent
#DB4DC7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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