#271B70#271B70

#271B70 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.138 H 280.6°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#271B70
RGBrgb(39, 27, 112)
HSLhsl(248, 61%, 27%)
HSVhsv(248, 76%, 44%)
CMYKcmyk(65.2%, 75.9%, 0%, 56.1%)
CIE-LABlab(17.39, 32.18, -47.01)
CIE-LCHlch(17.39, 56.97, 304.39°)
OKLaboklab(30.18% 0.0254 -0.1356)
OKLCHoklch(30.18% 0.138 280.6)
XYZxyz(4.1523, 2.3847, 15.5676)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B70 #64701B
analogous
#1B3970 #271B70 #521B70
triadic
#271B70 #70271B #1B7027
tetradic
#271B70 #701B39 #64701B #1B7052
square
#271B70 #701B39 #64701B #1B7052
split-complementary
#271B70 #70521B #39701B
monochromatic
#090619 #160F3F #271B70 #3827A1 #4C37CF

Accessibility & contrast

On white

14.22
#271B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B70
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B70#FFFFFF#000000##FFFFFF
##271B701.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271b70;
/* rgb */ color: rgb(39, 27, 112);
/* oklch */ color: oklch(30.2% 0.138 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c599a',
    500: '#271b70',
    950: '#000000',
  },
}
SCSS
$custom: #271b70;
$custom-light: #6c599a;
$custom-dark: #000000;
JSON
{
  "hex": "#271b70",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 248.471,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30182,
    "c": 0.13796,
    "h": 280.6
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#271B70
secondary
#97A542
accent
#E444CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271B70

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

Preview Lab → · Contrast checker → · Palette generator →

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