#271B7C#271B7C

#271B7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.154 H 278.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#271B7C
RGBrgb(39, 27, 124)
HSLhsl(247, 64%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(68.5%, 78.2%, 0%, 51.4%)
CIE-LABlab(18.67, 36.21, -52.62)
CIE-LCHlch(18.67, 63.87, 304.54°)
OKLaboklab(31.47% 0.0225 -0.152)
OKLCHoklch(31.47% 0.154 278.4)
XYZxyz(4.8656, 2.6700, 19.3238)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B7C #707C1B
analogous
#1B3F7C #271B7C #581B7C
triadic
#271B7C #7C271B #1B7C27
tetradic
#271B7C #7C1B3F #707C1B #1B7C58
square
#271B7C #7C1B3F #707C1B #1B7C58
split-complementary
#271B7C #7C581B #3F7C1B
monochromatic
#080519 #17104A #271B7C #3726AE #503DD5

Accessibility & contrast

On white

13.69
#271B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B7C
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B7C#FFFFFF#000000##FFFFFF
##271B7C1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271b7c;
/* rgb */ color: rgb(39, 27, 124);
/* oklch */ color: oklch(31.5% 0.154 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e5aa3',
    500: '#271b7c',
    950: '#000000',
  },
}
SCSS
$custom: #271b7c;
$custom-light: #6e5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#271b7c",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 247.423,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.15362,
    "h": 278.4
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#271B7C
secondary
#A2B043
accent
#E741D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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