#271B8F#271B8F

#271B8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 275.7°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#271B8F
RGBrgb(39, 27, 143)
HSLhsl(246, 68%, 33%)
HSVhsv(246, 81%, 56%)
CMYKcmyk(72.7%, 81.1%, 0%, 43.9%)
CIE-LABlab(20.82, 42.41, -61.03)
CIE-LCHlch(20.82, 74.32, 304.79°)
OKLaboklab(33.61% 0.0175 -0.1764)
OKLCHoklch(33.61% 0.177 275.7)
XYZxyz(6.1849, 3.1978, 26.2726)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B8F #838F1B
analogous
#1B498F #271B8F #611B8F
triadic
#271B8F #8F271B #1B8F27
tetradic
#271B8F #8F1B49 #838F1B #1B8F61
square
#271B8F #8F1B49 #838F1B #1B8F61
split-complementary
#271B8F #8F611B #498F1B
monochromatic
#0B0828 #19115C #271B8F #3525C2 #5748DC

Accessibility & contrast

On white

12.81
#271B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B8F
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B8F#FFFFFF#000000##FFFFFF
##271B8F1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271b8f;
/* rgb */ color: rgb(39, 27, 143);
/* oklch */ color: oklch(33.6% 0.177 275.7);
Tailwind
colors: {
  custom: {
    50: '#735bb1',
    500: '#271b8f',
    950: '#000000',
  },
}
SCSS
$custom: #271b8f;
$custom-light: #735bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#271b8f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 246.207,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33613,
    "c": 0.17732,
    "h": 275.7
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#271B8F
secondary
#B2BE48
accent
#EB3DD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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