#271B68#271B68

#271B68 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.127 H 282.3°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#271B68
RGBrgb(39, 27, 104)
HSLhsl(249, 59%, 26%)
HSVhsv(249, 74%, 41%)
CMYKcmyk(62.5%, 74%, 0%, 59.2%)
CIE-LABlab(16.57, 29.45, -43.13)
CIE-LCHlch(16.57, 52.23, 304.33°)
OKLaboklab(29.35% 0.0271 -0.1242)
OKLCHoklch(29.35% 0.127 282.3)
XYZxyz(3.7265, 2.2144, 13.3251)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B68 #5C681B
analogous
#1B3568 #271B68 #4D1B68
triadic
#271B68 #68271B #1B6827
tetradic
#271B68 #681B35 #5C681B #1B684D
square
#271B68 #681B35 #5C681B #1B684D
split-complementary
#271B68 #684D1B #35681B
monochromatic
#090618 #150E37 #271B68 #392899 #4B34C9

Accessibility & contrast

On white

14.55
#271B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B68
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B68#FFFFFF#000000##FFFFFF
##271B681.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271b68;
/* rgb */ color: rgb(39, 27, 104);
/* oklch */ color: oklch(29.4% 0.127 282.3);
Tailwind
colors: {
  custom: {
    50: '#6a5894',
    500: '#271b68',
    950: '#000000',
  },
}
SCSS
$custom: #271b68;
$custom-light: #6a5894;
$custom-dark: #000000;
JSON
{
  "hex": "#271b68",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 249.351,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29354,
    "c": 0.12718,
    "h": 282.3
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#271B68
secondary
#8F9D42
accent
#E246CA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B68

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

Preview Lab → · Contrast checker → · Palette generator →

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