#271B7D#271B7D

#271B7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.155 H 278.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#271B7D
RGBrgb(39, 27, 125)
HSLhsl(247, 64%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(68.8%, 78.4%, 0%, 51%)
CIE-LABlab(18.78, 36.54, -53.07)
CIE-LCHlch(18.78, 64.44, 304.55°)
OKLaboklab(31.58% 0.0223 -0.1533)
OKLCHoklch(31.58% 0.155 278.3)
XYZxyz(4.9291, 2.6955, 19.6586)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B7D #717D1B
analogous
#1B407D #271B7D #581B7D
triadic
#271B7D #7D271B #1B7D27
tetradic
#271B7D #7D1B40 #717D1B #1B7D58
square
#271B7D #7D1B40 #717D1B #1B7D58
split-complementary
#271B7D #7D581B #407D1B
monochromatic
#080519 #17104B #271B7D #3726AF #503DD5

Accessibility & contrast

On white

13.64
#271B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B7D
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B7D#FFFFFF#000000##FFFFFF
##271B7D1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271b7d;
/* rgb */ color: rgb(39, 27, 125);
/* oklch */ color: oklch(31.6% 0.155 278.3);
Tailwind
colors: {
  custom: {
    50: '#6e5aa4',
    500: '#271b7d',
    950: '#000000',
  },
}
SCSS
$custom: #271b7d;
$custom-light: #6e5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#271b7d",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 247.347,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.1549,
    "h": 278.3
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#271B7D
secondary
#A3B143
accent
#E740D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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