#271D5B#271D5B

#271D5B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.106 H 284.8°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#271D5B
RGBrgb(39, 29, 91)
HSLhsl(250, 52%, 24%)
HSVhsv(250, 68%, 36%)
CMYKcmyk(57.1%, 68.1%, 0%, 64.3%)
CIE-LABlab(15.83, 23.66, -35.74)
CIE-LCHlch(15.83, 42.87, 303.50°)
OKLaboklab(28.44% 0.0271 -0.1026)
OKLCHoklch(28.44% 0.106 284.8)
XYZxyz(3.1638, 2.0652, 10.1274)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D5B #515B1D
analogous
#1D325B #271D5B #461D5B
triadic
#271D5B #5B271D #1D5B27
tetradic
#271D5B #5B1D32 #515B1D #1D5B46
square
#271D5B #5B1D32 #515B1D #1D5B46
split-complementary
#271D5B #5B461D #325B1D
monochromatic
#0A0717 #130E2D #271D5B #3B2C89 #4F3BB8

Accessibility & contrast

On white

14.86
#271D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D5B
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D5B#FFFFFF#000000##FFFFFF
##271D5B1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#122C39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271d5b;
/* rgb */ color: rgb(39, 29, 91);
/* oklch */ color: oklch(28.4% 0.106 284.8);
Tailwind
colors: {
  custom: {
    50: '#67598a',
    500: '#271d5b',
    950: '#000000',
  },
}
SCSS
$custom: #271d5b;
$custom-light: #67598a;
$custom-dark: #000000;
JSON
{
  "hex": "#271d5b",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 249.677,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28435,
    "c": 0.10608,
    "h": 284.8
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#271D5B
secondary
#849044
accent
#DB4DC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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