#271C65#271C65

#271C65 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.122 H 282.7°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#271C65
RGBrgb(39, 28, 101)
HSLhsl(249, 57%, 25%)
HSVhsv(249, 72%, 40%)
CMYKcmyk(61.4%, 72.3%, 0%, 60.4%)
CIE-LABlab(16.51, 27.79, -41.27)
CIE-LCHlch(16.51, 49.75, 303.96°)
OKLaboklab(29.22% 0.0268 -0.1188)
OKLCHoklch(29.22% 0.122 282.7)
XYZxyz(3.6002, 2.2012, 12.5446)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C65 #5A651C
analogous
#1C3565 #271C65 #4B1C65
triadic
#271C65 #65271C #1C6527
tetradic
#271C65 #651C35 #5A651C #1C654B
square
#271C65 #651C35 #5A651C #1C654B
split-complementary
#271C65 #654B1C #35651C
monochromatic
#090718 #140F35 #271C65 #3A2995 #4C37C5

Accessibility & contrast

On white

14.58
#271C65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C65
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C65#FFFFFF#000000##FFFFFF
##271C651.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#042F3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271c65;
/* rgb */ color: rgb(39, 28, 101);
/* oklch */ color: oklch(29.2% 0.122 282.7);
Tailwind
colors: {
  custom: {
    50: '#695992',
    500: '#271c65',
    950: '#000000',
  },
}
SCSS
$custom: #271c65;
$custom-light: #695992;
$custom-dark: #000000;
JSON
{
  "hex": "#271c65",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 101
  },
  "hsl": {
    "h": 249.041,
    "s": 56.589,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29217,
    "c": 0.12175,
    "h": 282.7
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#271C65
secondary
#8D9A43
accent
#E048C9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C65

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

Preview Lab → · Contrast checker → · Palette generator →

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