#271B67#271B67

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

Color values

HEX#271B67
RGBrgb(39, 27, 103)
HSLhsl(249, 58%, 25%)
HSVhsv(249, 74%, 40%)
CMYKcmyk(62.1%, 73.8%, 0%, 59.6%)
CIE-LABlab(16.48, 29.11, -42.64)
CIE-LCHlch(16.48, 51.63, 304.32°)
OKLaboklab(29.25% 0.0273 -0.1228)
OKLCHoklch(29.25% 0.126 282.5)
XYZxyz(3.6761, 2.1942, 13.0592)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B67 #5B671B
analogous
#1B3567 #271B67 #4D1B67
triadic
#271B67 #67271B #1B6727
tetradic
#271B67 #671B35 #5B671B #1B674D
square
#271B67 #671B35 #5B671B #1B674D
split-complementary
#271B67 #674D1B #35671B
monochromatic
#090618 #150E37 #271B67 #392897 #4C34C8

Accessibility & contrast

On white

14.60
#271B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B67
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B67#FFFFFF#000000##FFFFFF
##271B671.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#012F3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271b67;
/* rgb */ color: rgb(39, 27, 103);
/* oklch */ color: oklch(29.3% 0.126 282.5);
Tailwind
colors: {
  custom: {
    50: '#6a5893',
    500: '#271b67',
    950: '#000000',
  },
}
SCSS
$custom: #271b67;
$custom-light: #6a5893;
$custom-dark: #000000;
JSON
{
  "hex": "#271b67",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 249.474,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29253,
    "c": 0.1258,
    "h": 282.5
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#271B67
secondary
#8E9C42
accent
#E246C9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B67

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

Preview Lab → · Contrast checker → · Palette generator →

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