#271E8B#271E8B

#271E8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.170 H 275.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#271E8B
RGBrgb(39, 30, 139)
HSLhsl(245, 64%, 33%)
HSVhsv(245, 78%, 55%)
CMYKcmyk(71.9%, 78.4%, 0%, 45.5%)
CIE-LABlab(20.92, 39.51, -58.37)
CIE-LCHlch(20.92, 70.49, 304.09°)
OKLaboklab(33.55% 0.0171 -0.1688)
OKLCHoklch(33.55% 0.17 275.8)
XYZxyz(5.9596, 3.2234, 24.7292)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E8B #828B1E
analogous
#1E4B8B #271E8B #5D1E8B
triadic
#271E8B #8B271E #1E8B27
tetradic
#271E8B #8B1E4B #828B1E #1E8B5D
square
#271E8B #8B1E4B #828B1E #1E8B5D
split-complementary
#271E8B #8B5D1E #4B8B1E
monochromatic
#0B0826 #191359 #271E8B #3529BD #574BD8

Accessibility & contrast

On white

12.77
#271E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E8B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E8B#FFFFFF#000000##FFFFFF
##271E8B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271e8b;
/* rgb */ color: rgb(39, 30, 139);
/* oklch */ color: oklch(33.5% 0.170 275.8);
Tailwind
colors: {
  custom: {
    50: '#725cae',
    500: '#271e8b',
    950: '#000000',
  },
}
SCSS
$custom: #271e8b;
$custom-light: #725cae;
$custom-dark: #000000;
JSON
{
  "hex": "#271e8b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 244.954,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.16963,
    "h": 275.8
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#271E8B
secondary
#B1BB4A
accent
#E740DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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