#271B69#271B69

#271B69 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.129 H 282.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#271B69
RGBrgb(39, 27, 105)
HSLhsl(249, 59%, 26%)
HSVhsv(249, 74%, 41%)
CMYKcmyk(62.9%, 74.3%, 0%, 58.8%)
CIE-LABlab(16.67, 29.79, -43.62)
CIE-LCHlch(16.67, 52.83, 304.33°)
OKLaboklab(29.46% 0.0269 -0.1257)
OKLCHoklch(29.46% 0.129 282.1)
XYZxyz(3.7776, 2.2349, 13.5942)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B69 #5D691B
analogous
#1B3669 #271B69 #4E1B69
triadic
#271B69 #69271B #1B6927
tetradic
#271B69 #691B36 #5D691B #1B694E
square
#271B69 #691B36 #5D691B #1B694E
split-complementary
#271B69 #694E1B #36691B
monochromatic
#090618 #150E38 #271B69 #39289A #4B34CA

Accessibility & contrast

On white

14.51
#271B69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B69
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B69#FFFFFF#000000##FFFFFF
##271B691.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6B
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271b69;
/* rgb */ color: rgb(39, 27, 105);
/* oklch */ color: oklch(29.5% 0.129 282.1);
Tailwind
colors: {
  custom: {
    50: '#6a5995',
    500: '#271b69',
    950: '#000000',
  },
}
SCSS
$custom: #271b69;
$custom-light: #6a5995;
$custom-dark: #000000;
JSON
{
  "hex": "#271b69",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 105
  },
  "hsl": {
    "h": 249.231,
    "s": 59.091,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29456,
    "c": 0.12854,
    "h": 282.1
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#271B69
secondary
#909E42
accent
#E246CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B69

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

Preview Lab → · Contrast checker → · Palette generator →

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