#271E5D#271E5D

#271E5D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.8% C 0.108 H 283.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#271E5D
RGBrgb(39, 30, 93)
HSLhsl(249, 51%, 24%)
HSVhsv(249, 68%, 36%)
CMYKcmyk(58.1%, 67.7%, 0%, 63.5%)
CIE-LABlab(16.26, 23.69, -36.38)
CIE-LCHlch(16.26, 43.41, 303.07°)
OKLaboklab(28.8% 0.0258 -0.1044)
OKLCHoklch(28.8% 0.108 283.9)
XYZxyz(3.2762, 2.1500, 10.5962)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E5D #545D1E
analogous
#1E355D #271E5D #471E5D
triadic
#271E5D #5D271E #1E5D27
tetradic
#271E5D #5D1E35 #545D1E #1E5D47
square
#271E5D #5D1E35 #545D1E #1E5D47
split-complementary
#271E5D #5D471E #355D1E
monochromatic
#0A0717 #140F2F #271E5D #3A2D8B #4E3CBA

Accessibility & contrast

On white

14.69
#271E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E5D
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E5D#FFFFFF#000000##FFFFFF
##271E5D1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#0F2D3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271e5d;
/* rgb */ color: rgb(39, 30, 93);
/* oklch */ color: oklch(28.8% 0.108 283.9);
Tailwind
colors: {
  custom: {
    50: '#675a8b',
    500: '#271e5d',
    950: '#000000',
  },
}
SCSS
$custom: #271e5d;
$custom-light: #675a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#271e5d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 248.571,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28803,
    "c": 0.10756,
    "h": 283.9
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#271E5D
secondary
#879245
accent
#DB4DC6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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