#271F82#271F82

#271F82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.157 H 276.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#271F82
RGBrgb(39, 31, 130)
HSLhsl(245, 61%, 32%)
HSVhsv(245, 76%, 51%)
CMYKcmyk(70%, 76.2%, 0%, 49%)
CIE-LABlab(20.13, 35.93, -54.01)
CIE-LCHlch(20.13, 64.87, 303.63°)
OKLaboklab(32.7% 0.0186 -0.1561)
OKLCHoklch(32.7% 0.157 276.8)
XYZxyz(5.3546, 3.0225, 21.4160)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F82 #7A821F
analogous
#1F4982 #271F82 #591F82
triadic
#271F82 #82271F #1F8227
tetradic
#271F82 #821F49 #7A821F #1F8259
square
#271F82 #821F49 #7A821F #1F8259
split-complementary
#271F82 #82591F #49821F
monochromatic
#09071F #181351 #271F82 #362BB3 #5348D3

Accessibility & contrast

On white

13.09
#271F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F82
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F82#FFFFFF#000000##FFFFFF
##271F821.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271f82;
/* rgb */ color: rgb(39, 31, 130);
/* oklch */ color: oklch(32.7% 0.157 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f5ca7',
    500: '#271f82',
    950: '#000000',
  },
}
SCSS
$custom: #271f82;
$custom-light: #6f5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#271f82",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 244.848,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.15717,
    "h": 276.8
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#271F82
secondary
#ACB548
accent
#E543D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271F82

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

Preview Lab → · Contrast checker → · Palette generator →

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