#271B7E#271B7E

#271B7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 278.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#271B7E
RGBrgb(39, 27, 126)
HSLhsl(247, 65%, 30%)
HSVhsv(247, 79%, 49%)
CMYKcmyk(69%, 78.6%, 0%, 50.6%)
CIE-LABlab(18.89, 36.87, -53.53)
CIE-LCHlch(18.89, 65.00, 304.56°)
OKLaboklab(31.69% 0.022 -0.1546)
OKLCHoklch(31.69% 0.156 278.1)
XYZxyz(4.9933, 2.7211, 19.9967)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B7E #727E1B
analogous
#1B407E #271B7E #591B7E
triadic
#271B7E #7E271B #1B7E27
tetradic
#271B7E #7E1B40 #727E1B #1B7E59
square
#271B7E #7E1B40 #727E1B #1B7E59
split-complementary
#271B7E #7E591B #407E1B
monochromatic
#080519 #17104C #271B7E #3726B0 #503ED6

Accessibility & contrast

On white

13.60
#271B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B7E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B7E#FFFFFF#000000##FFFFFF
##271B7E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271b7e;
/* rgb */ color: rgb(39, 27, 126);
/* oklch */ color: oklch(31.7% 0.156 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#271b7e',
    950: '#000000',
  },
}
SCSS
$custom: #271b7e;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#271b7e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 247.273,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.31694,
    "c": 0.15618,
    "h": 278.1
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#271B7E
secondary
#A4B243
accent
#E840D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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