#271C64#271C64

#271C64 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.120 H 282.9°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#271C64
RGBrgb(39, 28, 100)
HSLhsl(249, 56%, 25%)
HSVhsv(249, 72%, 39%)
CMYKcmyk(61%, 72%, 0%, 60.8%)
CIE-LABlab(16.41, 27.45, -40.77)
CIE-LCHlch(16.41, 49.14, 303.95°)
OKLaboklab(29.12% 0.0269 -0.1173)
OKLCHoklch(29.12% 0.12 282.9)
XYZxyz(3.5515, 2.1817, 12.2881)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C64 #59641C
analogous
#1C3564 #271C64 #4B1C64
triadic
#271C64 #64271C #1C6427
tetradic
#271C64 #641C35 #59641C #1C644B
square
#271C64 #641C35 #59641C #1C644B
split-complementary
#271C64 #644B1C #35641C
monochromatic
#090718 #140F34 #271C64 #3A2994 #4C37C4

Accessibility & contrast

On white

14.62
#271C64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C64
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C64#FFFFFF#000000##FFFFFF
##271C641.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#062F3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271c64;
/* rgb */ color: rgb(39, 28, 100);
/* oklch */ color: oklch(29.1% 0.120 282.9);
Tailwind
colors: {
  custom: {
    50: '#695991',
    500: '#271c64',
    950: '#000000',
  },
}
SCSS
$custom: #271c64;
$custom-light: #695991;
$custom-dark: #000000;
JSON
{
  "hex": "#271c64",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 100
  },
  "hsl": {
    "h": 249.167,
    "s": 56.25,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29118,
    "c": 0.12036,
    "h": 282.9
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#271C64
secondary
#8C9943
accent
#E048C8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C64

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

Preview Lab → · Contrast checker → · Palette generator →

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