#271E5B#271E5B

#271E5B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.105 H 284.4°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#271E5B
RGBrgb(39, 30, 91)
HSLhsl(249, 50%, 24%)
HSVhsv(249, 67%, 36%)
CMYKcmyk(57.1%, 67%, 0%, 64.3%)
CIE-LABlab(16.08, 22.99, -35.33)
CIE-LCHlch(16.08, 42.15, 303.05°)
OKLaboklab(28.62% 0.0259 -0.1013)
OKLCHoklch(28.62% 0.105 284.4)
XYZxyz(3.1887, 2.1150, 10.1357)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E5B #525B1E
analogous
#1E335B #271E5B #451E5B
triadic
#271E5B #5B271E #1E5B27
tetradic
#271E5B #5B1E33 #525B1E #1E5B45
square
#271E5B #5B1E33 #525B1E #1E5B45
split-complementary
#271E5B #5B451E #335B1E
monochromatic
#0A0817 #130F2D #271E5B #3B2D89 #4E3CB7

Accessibility & contrast

On white

14.76
#271E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E5B
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E5B#FFFFFF#000000##FFFFFF
##271E5B1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#112D39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271e5b;
/* rgb */ color: rgb(39, 30, 91);
/* oklch */ color: oklch(28.6% 0.105 284.4);
Tailwind
colors: {
  custom: {
    50: '#675a8a',
    500: '#271e5b',
    950: '#000000',
  },
}
SCSS
$custom: #271e5b;
$custom-light: #675a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#271e5b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 248.852,
    "s": 50.413,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2862,
    "c": 0.10462,
    "h": 284.4
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#271E5B
secondary
#859045
accent
#DA4EC5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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