#271D62#271D62

#271D62 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.1% C 0.116 H 283.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#271D62
RGBrgb(39, 29, 98)
HSLhsl(249, 54%, 25%)
HSVhsv(249, 70%, 38%)
CMYKcmyk(60.2%, 70.4%, 0%, 61.6%)
CIE-LABlab(16.46, 26.10, -39.36)
CIE-LCHlch(16.46, 47.23, 303.55°)
OKLaboklab(29.1% 0.0262 -0.1132)
OKLCHoklch(29.1% 0.116 283.1)
XYZxyz(3.4800, 2.1917, 11.7926)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D62 #58621D
analogous
#1D3562 #271D62 #4A1D62
triadic
#271D62 #62271D #1D6227
tetradic
#271D62 #621D35 #58621D #1D624A
square
#271D62 #621D35 #58621D #1D624A
split-complementary
#271D62 #624A1D #35621D
monochromatic
#090718 #140F33 #271D62 #3A2B91 #4D39C0

Accessibility & contrast

On white

14.60
#271D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D62
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D62#FFFFFF#000000##FFFFFF
##271D621.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#092F3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271d62;
/* rgb */ color: rgb(39, 29, 98);
/* oklch */ color: oklch(29.1% 0.116 283.1);
Tailwind
colors: {
  custom: {
    50: '#685a8f',
    500: '#271d62',
    950: '#000000',
  },
}
SCSS
$custom: #271d62;
$custom-light: #685a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#271d62",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 248.696,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29095,
    "c": 0.1162,
    "h": 283.1
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#271D62
secondary
#8B9744
accent
#DE4AC8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271D62

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

Preview Lab → · Contrast checker → · Palette generator →

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