#271B64#271B64

#271B64 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.122 H 283.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#271B64
RGBrgb(39, 27, 100)
HSLhsl(250, 57%, 25%)
HSVhsv(250, 73%, 39%)
CMYKcmyk(61%, 73%, 0%, 60.8%)
CIE-LABlab(16.18, 28.08, -41.15)
CIE-LCHlch(16.18, 49.82, 304.31°)
OKLaboklab(28.95% 0.0279 -0.1184)
OKLCHoklch(28.95% 0.122 283.2)
XYZxyz(3.5282, 2.1351, 12.2803)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B64 #58641B
analogous
#1B3464 #271B64 #4C1B64
triadic
#271B64 #64271B #1B6427
tetradic
#271B64 #641B34 #58641B #1B644C
square
#271B64 #641B34 #58641B #1B644C
split-complementary
#271B64 #644C1B #34641B
monochromatic
#090718 #140E34 #271B64 #3A2894 #4D35C4

Accessibility & contrast

On white

14.72
#271B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B64
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B64#FFFFFF#000000##FFFFFF
##271B641.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#062E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271b64;
/* rgb */ color: rgb(39, 27, 100);
/* oklch */ color: oklch(29.0% 0.122 283.2);
Tailwind
colors: {
  custom: {
    50: '#695891',
    500: '#271b64',
    950: '#000000',
  },
}
SCSS
$custom: #271b64;
$custom-light: #695891;
$custom-dark: #000000;
JSON
{
  "hex": "#271b64",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 249.863,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28951,
    "c": 0.12167,
    "h": 283.2
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#271B64
secondary
#8B9941
accent
#E147C7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B64

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

Preview Lab → · Contrast checker → · Palette generator →

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