#271C62#271C62

#271C62 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.9% C 0.118 H 283.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#271C62
RGBrgb(39, 28, 98)
HSLhsl(249, 56%, 25%)
HSVhsv(249, 71%, 38%)
CMYKcmyk(60.2%, 71.4%, 0%, 61.6%)
CIE-LABlab(16.22, 26.75, -39.76)
CIE-LCHlch(16.22, 47.92, 303.94°)
OKLaboklab(28.92% 0.0272 -0.1143)
OKLCHoklch(28.92% 0.118 283.4)
XYZxyz(3.4559, 2.1435, 11.7845)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C62 #57621C
analogous
#1C3462 #271C62 #4A1C62
triadic
#271C62 #62271C #1C6227
tetradic
#271C62 #621C34 #57621C #1C624A
square
#271C62 #621C34 #57621C #1C624A
split-complementary
#271C62 #624A1C #34621C
monochromatic
#090718 #140E32 #271C62 #3A2A92 #4D37C1

Accessibility & contrast

On white

14.70
#271C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C62
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C62#FFFFFF#000000##FFFFFF
##271C621.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#092E3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271c62;
/* rgb */ color: rgb(39, 28, 98);
/* oklch */ color: oklch(28.9% 0.118 283.4);
Tailwind
colors: {
  custom: {
    50: '#68598f',
    500: '#271c62',
    950: '#000000',
  },
}
SCSS
$custom: #271c62;
$custom-light: #68598f;
$custom-dark: #000000;
JSON
{
  "hex": "#271c62",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 249.429,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28922,
    "c": 0.11755,
    "h": 283.4
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#271C62
secondary
#8A9743
accent
#DF49C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271C62

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

Preview Lab → · Contrast checker → · Palette generator →

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