#271B66#271B66

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

Color values

HEX#271B66
RGBrgb(39, 27, 102)
HSLhsl(250, 58%, 25%)
HSVhsv(250, 74%, 40%)
CMYKcmyk(61.8%, 73.5%, 0%, 60%)
CIE-LABlab(16.38, 28.77, -42.14)
CIE-LCHlch(16.38, 51.03, 304.32°)
OKLaboklab(29.15% 0.0275 -0.1213)
OKLCHoklch(29.15% 0.124 282.8)
XYZxyz(3.6262, 2.1743, 12.7964)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B66 #5A661B
analogous
#1B3466 #271B66 #4C1B66
triadic
#271B66 #66271B #1B6627
tetradic
#271B66 #661B34 #5A661B #1B664C
square
#271B66 #661B34 #5A661B #1B664C
split-complementary
#271B66 #664C1B #34661B
monochromatic
#090618 #140E36 #271B66 #3A2896 #4C35C7

Accessibility & contrast

On white

14.63
#271B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B66
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B66#FFFFFF#000000##FFFFFF
##271B661.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.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: #271b66;
/* rgb */ color: rgb(39, 27, 102);
/* oklch */ color: oklch(29.2% 0.124 282.8);
Tailwind
colors: {
  custom: {
    50: '#695892',
    500: '#271b66',
    950: '#000000',
  },
}
SCSS
$custom: #271b66;
$custom-light: #695892;
$custom-dark: #000000;
JSON
{
  "hex": "#271b66",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 249.6,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29152,
    "c": 0.12443,
    "h": 282.8
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#271B66
secondary
#8D9B41
accent
#E146C9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B66

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

Preview Lab → · Contrast checker → · Palette generator →

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