#271D61#271D61

#271D61 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.0% C 0.115 H 283.3°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#271D61
RGBrgb(39, 29, 97)
HSLhsl(249, 54%, 25%)
HSVhsv(249, 70%, 38%)
CMYKcmyk(59.8%, 70.1%, 0%, 62%)
CIE-LABlab(16.37, 25.76, -38.85)
CIE-LCHlch(16.37, 46.61, 303.54°)
OKLaboklab(29% 0.0264 -0.1117)
OKLCHoklch(29% 0.115 283.3)
XYZxyz(3.4331, 2.1729, 11.5455)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D61 #57611D
analogous
#1D3561 #271D61 #491D61
triadic
#271D61 #61271D #1D6127
tetradic
#271D61 #611D35 #57611D #1D6149
square
#271D61 #611D35 #57611D #1D6149
split-complementary
#271D61 #61491D #35611D
monochromatic
#090718 #140F32 #271D61 #3A2B90 #4D39BF

Accessibility & contrast

On white

14.64
#271D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271D61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D61
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D61#FFFFFF#000000##FFFFFF
##271D611.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#0A2E3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271d61;
/* rgb */ color: rgb(39, 29, 97);
/* oklch */ color: oklch(29.0% 0.115 283.3);
Tailwind
colors: {
  custom: {
    50: '#685a8f',
    500: '#271d61',
    950: '#000000',
  },
}
SCSS
$custom: #271d61;
$custom-light: #685a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#271d61",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 97
  },
  "hsl": {
    "h": 248.824,
    "s": 53.968,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28999,
    "c": 0.11477,
    "h": 283.3
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#271D61
secondary
#8A9644
accent
#DD4AC8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271D61

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

Preview Lab → · Contrast checker → · Palette generator →

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