#271B65#271B65

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

Color values

HEX#271B65
RGBrgb(39, 27, 101)
HSLhsl(250, 58%, 25%)
HSVhsv(250, 73%, 40%)
CMYKcmyk(61.4%, 73.3%, 0%, 60.4%)
CIE-LABlab(16.28, 28.42, -41.65)
CIE-LCHlch(16.28, 50.42, 304.31°)
OKLaboklab(29.05% 0.0277 -0.1199)
OKLCHoklch(29.05% 0.123 283)
XYZxyz(3.5769, 2.1546, 12.5368)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B65 #59651B
analogous
#1B3465 #271B65 #4C1B65
triadic
#271B65 #65271B #1B6527
tetradic
#271B65 #651B34 #59651B #1B654C
square
#271B65 #651B34 #59651B #1B654C
split-complementary
#271B65 #654C1B #34651B
monochromatic
#090618 #140E35 #271B65 #3A2895 #4C35C6

Accessibility & contrast

On white

14.68
#271B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B65
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B65#FFFFFF#000000##FFFFFF
##271B651.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#052E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271b65;
/* rgb */ color: rgb(39, 27, 101);
/* oklch */ color: oklch(29.1% 0.123 283.0);
Tailwind
colors: {
  custom: {
    50: '#695892',
    500: '#271b65',
    950: '#000000',
  },
}
SCSS
$custom: #271b65;
$custom-light: #695892;
$custom-dark: #000000;
JSON
{
  "hex": "#271b65",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 249.73,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29051,
    "c": 0.12305,
    "h": 283
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#271B65
secondary
#8C9A41
accent
#E147C8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B65

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

Preview Lab → · Contrast checker → · Palette generator →

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