#271C63#271C63

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

Color values

HEX#271C63
RGBrgb(39, 28, 99)
HSLhsl(249, 56%, 25%)
HSVhsv(249, 72%, 39%)
CMYKcmyk(60.6%, 71.7%, 0%, 61.2%)
CIE-LABlab(16.32, 27.10, -40.26)
CIE-LCHlch(16.32, 48.53, 303.94°)
OKLaboklab(29.02% 0.0271 -0.1158)
OKLCHoklch(29.02% 0.119 283.2)
XYZxyz(3.5034, 2.1625, 12.0348)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C63 #58631C
analogous
#1C3463 #271C63 #4B1C63
triadic
#271C63 #63271C #1C6327
tetradic
#271C63 #631C34 #58631C #1C634B
square
#271C63 #631C34 #58631C #1C634B
split-complementary
#271C63 #634B1C #34631C
monochromatic
#090718 #140F33 #271C63 #3A2993 #4D37C2

Accessibility & contrast

On white

14.66
#271C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C63
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C63#FFFFFF#000000##FFFFFF
##271C631.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#072E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271c63;
/* rgb */ color: rgb(39, 28, 99);
/* oklch */ color: oklch(29.0% 0.119 283.2);
Tailwind
colors: {
  custom: {
    50: '#695990',
    500: '#271c63',
    950: '#000000',
  },
}
SCSS
$custom: #271c63;
$custom-light: #695990;
$custom-dark: #000000;
JSON
{
  "hex": "#271c63",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 249.296,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2902,
    "c": 0.11896,
    "h": 283.2
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#271C63
secondary
#8B9843
accent
#DF49C8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271C63

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

Preview Lab → · Contrast checker → · Palette generator →

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