#271D5C#271D5C

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

Color values

HEX#271D5C
RGBrgb(39, 29, 92)
HSLhsl(250, 52%, 24%)
HSVhsv(250, 68%, 36%)
CMYKcmyk(57.6%, 68.5%, 0%, 63.9%)
CIE-LABlab(15.91, 24.01, -36.27)
CIE-LCHlch(15.91, 43.49, 303.50°)
OKLaboklab(28.53% 0.027 -0.1041)
OKLCHoklch(28.53% 0.108 284.5)
XYZxyz(3.2072, 2.0826, 10.3561)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D5C #525C1D
analogous
#1D325C #271D5C #461D5C
triadic
#271D5C #5C271D #1D5C27
tetradic
#271D5C #5C1D32 #525C1D #1D5C46
square
#271D5C #5C1D32 #525C1D #1D5C46
split-complementary
#271D5C #5C461D #325C1D
monochromatic
#0A0717 #130E2D #271D5C #3B2C8B #4E3AB9

Accessibility & contrast

On white

14.82
#271D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D5C
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D5C#FFFFFF#000000##FFFFFF
##271D5C1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#112C39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271d5c;
/* rgb */ color: rgb(39, 29, 92);
/* oklch */ color: oklch(28.5% 0.108 284.5);
Tailwind
colors: {
  custom: {
    50: '#67598b',
    500: '#271d5c',
    950: '#000000',
  },
}
SCSS
$custom: #271d5c;
$custom-light: #67598b;
$custom-dark: #000000;
JSON
{
  "hex": "#271d5c",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 249.524,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28528,
    "c": 0.10755,
    "h": 284.5
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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