#271B6F#271B6F

#271B6F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.137 H 280.8°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#271B6F
RGBrgb(39, 27, 111)
HSLhsl(249, 61%, 27%)
HSVhsv(249, 76%, 44%)
CMYKcmyk(64.9%, 75.7%, 0%, 56.5%)
CIE-LABlab(17.29, 31.84, -46.53)
CIE-LCHlch(17.29, 56.39, 304.38°)
OKLaboklab(30.08% 0.0256 -0.1342)
OKLCHoklch(30.08% 0.137 280.8)
XYZxyz(4.0970, 2.3626, 15.2760)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B6F #636F1B
analogous
#1B396F #271B6F #511B6F
triadic
#271B6F #6F271B #1B6F27
tetradic
#271B6F #6F1B39 #636F1B #1B6F51
square
#271B6F #6F1B39 #636F1B #1B6F51
split-complementary
#271B6F #6F511B #396F1B
monochromatic
#090619 #160F3E #271B6F #3827A0 #4C36CE

Accessibility & contrast

On white

14.26
#271B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B6F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B6F#FFFFFF#000000##FFFFFF
##271B6F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271b6f;
/* rgb */ color: rgb(39, 27, 111);
/* oklch */ color: oklch(30.1% 0.137 280.8);
Tailwind
colors: {
  custom: {
    50: '#6b5999',
    500: '#271b6f',
    950: '#000000',
  },
}
SCSS
$custom: #271b6f;
$custom-light: #6b5999;
$custom-dark: #000000;
JSON
{
  "hex": "#271b6f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 248.571,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30077,
    "c": 0.13663,
    "h": 280.8
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#271B6F
secondary
#96A442
accent
#E444CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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