#271B6C#271B6C

#271B6C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.133 H 281.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#271B6C
RGBrgb(39, 27, 108)
HSLhsl(249, 60%, 26%)
HSVhsv(249, 75%, 42%)
CMYKcmyk(63.9%, 75%, 0%, 57.6%)
CIE-LABlab(16.98, 30.82, -45.09)
CIE-LCHlch(16.98, 54.62, 304.35°)
OKLaboklab(29.77% 0.0263 -0.13)
OKLCHoklch(29.77% 0.133 281.4)
XYZxyz(3.9346, 2.2976, 14.4206)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B6C #606C1B
analogous
#1B386C #271B6C #501B6C
triadic
#271B6C #6C271B #1B6C27
tetradic
#271B6C #6C1B38 #606C1B #1B6C50
square
#271B6C #6C1B38 #606C1B #1B6C50
split-complementary
#271B6C #6C501B #386C1B
monochromatic
#090618 #150F3B #271B6C #39279D #4B35CC

Accessibility & contrast

On white

14.39
#271B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B6C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B6C#FFFFFF#000000##FFFFFF
##271B6C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271b6c;
/* rgb */ color: rgb(39, 27, 108);
/* oklch */ color: oklch(29.8% 0.133 281.4);
Tailwind
colors: {
  custom: {
    50: '#6b5997',
    500: '#271b6c',
    950: '#000000',
  },
}
SCSS
$custom: #271b6c;
$custom-light: #6b5997;
$custom-dark: #000000;
JSON
{
  "hex": "#271b6c",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 248.889,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29765,
    "c": 0.1326,
    "h": 281.4
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#271B6C
secondary
#93A142
accent
#E345CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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