#271B6E#271B6E

#271B6E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.135 H 281.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#271B6E
RGBrgb(39, 27, 110)
HSLhsl(249, 61%, 27%)
HSVhsv(249, 75%, 43%)
CMYKcmyk(64.5%, 75.5%, 0%, 56.9%)
CIE-LABlab(17.18, 31.50, -46.05)
CIE-LCHlch(17.18, 55.80, 304.37°)
OKLaboklab(29.97% 0.0259 -0.1328)
OKLCHoklch(29.97% 0.135 281)
XYZxyz(4.0422, 2.3407, 14.9876)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B6E #626E1B
analogous
#1B396E #271B6E #511B6E
triadic
#271B6E #6E271B #1B6E27
tetradic
#271B6E #6E1B39 #626E1B #1B6E51
square
#271B6E #6E1B39 #626E1B #1B6E51
split-complementary
#271B6E #6E511B #396E1B
monochromatic
#090619 #160F3D #271B6E #38279F #4C36CE

Accessibility & contrast

On white

14.30
#271B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B6E
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B6E#FFFFFF#000000##FFFFFF
##271B6E1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271b6e;
/* rgb */ color: rgb(39, 27, 110);
/* oklch */ color: oklch(30.0% 0.135 281.0);
Tailwind
colors: {
  custom: {
    50: '#6b5998',
    500: '#271b6e',
    950: '#000000',
  },
}
SCSS
$custom: #271b6e;
$custom-light: #6b5998;
$custom-dark: #000000;
JSON
{
  "hex": "#271b6e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 248.675,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29973,
    "c": 0.13529,
    "h": 281
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#271B6E
secondary
#95A342
accent
#E444CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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