#271D5D#271D5D

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

Color values

HEX#271D5D
RGBrgb(39, 29, 93)
HSLhsl(249, 52%, 24%)
HSVhsv(249, 69%, 36%)
CMYKcmyk(58.1%, 68.8%, 0%, 63.5%)
CIE-LABlab(16.00, 24.36, -36.79)
CIE-LCHlch(16.00, 44.12, 303.51°)
OKLaboklab(28.62% 0.0269 -0.1056)
OKLCHoklch(28.62% 0.109 284.3)
XYZxyz(3.2512, 2.1002, 10.5879)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D5D #535D1D
analogous
#1D335D #271D5D #471D5D
triadic
#271D5D #5D271D #1D5D27
tetradic
#271D5D #5D1D33 #535D1D #1D5D47
square
#271D5D #5D1D33 #535D1D #1D5D47
split-complementary
#271D5D #5D471D #335D1D
monochromatic
#0A0717 #130E2E #271D5D #3B2C8C #4E3ABA

Accessibility & contrast

On white

14.79
#271D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D5D
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D5D#FFFFFF#000000##FFFFFF
##271D5D1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.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: #271d5d;
/* rgb */ color: rgb(39, 29, 93);
/* oklch */ color: oklch(28.6% 0.109 284.3);
Tailwind
colors: {
  custom: {
    50: '#67598b',
    500: '#271d5d',
    950: '#000000',
  },
}
SCSS
$custom: #271d5d;
$custom-light: #67598b;
$custom-dark: #000000;
JSON
{
  "hex": "#271d5d",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 249.375,
    "s": 52.459,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.109,
    "h": 284.3
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#271D5D
secondary
#869244
accent
#DC4CC5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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