#271C68#271C68

#271C68 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.126 H 282.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#271C68
RGBrgb(39, 28, 104)
HSLhsl(249, 58%, 26%)
HSVhsv(249, 73%, 41%)
CMYKcmyk(62.5%, 73.1%, 0%, 59.2%)
CIE-LABlab(16.80, 28.83, -42.76)
CIE-LCHlch(16.80, 51.57, 303.99°)
OKLaboklab(29.52% 0.0262 -0.1232)
OKLCHoklch(29.52% 0.126 282)
XYZxyz(3.7499, 2.2611, 13.3328)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C68 #5D681C
analogous
#1C3768 #271C68 #4D1C68
triadic
#271C68 #68271C #1C6827
tetradic
#271C68 #681C37 #5D681C #1C684D
square
#271C68 #681C37 #5D681C #1C684D
split-complementary
#271C68 #684D1C #37681C
monochromatic
#090618 #150F38 #271C68 #392998 #4B36C8

Accessibility & contrast

On white

14.46
#271C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C68
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C68#FFFFFF#000000##FFFFFF
##271C681.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271c68;
/* rgb */ color: rgb(39, 28, 104);
/* oklch */ color: oklch(29.5% 0.126 282.0);
Tailwind
colors: {
  custom: {
    50: '#6a5994',
    500: '#271c68',
    950: '#000000',
  },
}
SCSS
$custom: #271c68;
$custom-light: #6a5994;
$custom-dark: #000000;
JSON
{
  "hex": "#271c68",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 248.684,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29517,
    "c": 0.12592,
    "h": 282
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#271C68
secondary
#909D43
accent
#E147CB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C68

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

Preview Lab → · Contrast checker → · Palette generator →

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