#271D5A#271D5A

#271D5A is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.3% C 0.105 H 285.1°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#271D5A
RGBrgb(39, 29, 90)
HSLhsl(250, 51%, 23%)
HSVhsv(250, 68%, 35%)
CMYKcmyk(56.7%, 67.8%, 0%, 64.7%)
CIE-LABlab(15.74, 23.31, -35.22)
CIE-LCHlch(15.74, 42.23, 303.50°)
OKLaboklab(28.34% 0.0272 -0.101)
OKLCHoklch(28.34% 0.105 285.1)
XYZxyz(3.1210, 2.0481, 9.9017)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D5A #505A1D
analogous
#1D315A #271D5A #451D5A
triadic
#271D5A #5A271D #1D5A27
tetradic
#271D5A #5A1D31 #505A1D #1D5A45
square
#271D5A #5A1D31 #505A1D #1D5A45
split-complementary
#271D5A #5A451D #315A1D
monochromatic
#0A0717 #130E2C #271D5A #3B2C88 #4F3BB7

Accessibility & contrast

On white

14.90
#271D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D5A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D5A#FFFFFF#000000##FFFFFF
##271D5A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#122C38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271d5a;
/* rgb */ color: rgb(39, 29, 90);
/* oklch */ color: oklch(28.3% 0.105 285.1);
Tailwind
colors: {
  custom: {
    50: '#675989',
    500: '#271d5a',
    950: '#000000',
  },
}
SCSS
$custom: #271d5a;
$custom-light: #675989;
$custom-dark: #000000;
JSON
{
  "hex": "#271d5a",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 249.836,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28343,
    "c": 0.10461,
    "h": 285.1
  },
  "luminance": 0.02048
}

Semantic roles & 50–950 ramp

primary
#271D5A
secondary
#838F44
accent
#DB4DC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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