#271C66#271C66

#271C66 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.123 H 282.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#271C66
RGBrgb(39, 28, 102)
HSLhsl(249, 57%, 25%)
HSVhsv(249, 73%, 40%)
CMYKcmyk(61.8%, 72.5%, 0%, 60%)
CIE-LABlab(16.61, 28.14, -41.77)
CIE-LCHlch(16.61, 50.36, 303.97°)
OKLaboklab(29.32% 0.0266 -0.1202)
OKLCHoklch(29.32% 0.123 282.5)
XYZxyz(3.6495, 2.2209, 12.8042)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C66 #5B661C
analogous
#1C3666 #271C66 #4C1C66
triadic
#271C66 #66271C #1C6627
tetradic
#271C66 #661C36 #5B661C #1C664C
square
#271C66 #661C36 #5B661C #1C664C
split-complementary
#271C66 #664C1C #36661C
monochromatic
#090718 #150F36 #271C66 #392996 #4C36C6

Accessibility & contrast

On white

14.54
#271C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C66
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C66#FFFFFF#000000##FFFFFF
##271C661.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#032F3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271c66;
/* rgb */ color: rgb(39, 28, 102);
/* oklch */ color: oklch(29.3% 0.123 282.5);
Tailwind
colors: {
  custom: {
    50: '#695992',
    500: '#271c66',
    950: '#000000',
  },
}
SCSS
$custom: #271c66;
$custom-light: #695992;
$custom-dark: #000000;
JSON
{
  "hex": "#271c66",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 248.919,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29316,
    "c": 0.12315,
    "h": 282.5
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#271C66
secondary
#8E9B43
accent
#E048CA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C66

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

Preview Lab → · Contrast checker → · Palette generator →

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