#271F83#271F83

#271F83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 276.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#271F83
RGBrgb(39, 31, 131)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 76%, 51%)
CMYKcmyk(70.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.24, 36.27, -54.47)
CIE-LCHlch(20.24, 65.44, 303.66°)
OKLaboklab(32.81% 0.0184 -0.1574)
OKLCHoklch(32.81% 0.158 276.7)
XYZxyz(5.4221, 3.0495, 21.7712)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F83 #7B831F
analogous
#1F4983 #271F83 #591F83
triadic
#271F83 #83271F #1F8327
tetradic
#271F83 #831F49 #7B831F #1F8359
square
#271F83 #831F49 #7B831F #1F8359
split-complementary
#271F83 #83591F #49831F
monochromatic
#0A0820 #181352 #271F83 #362BB4 #5449D4

Accessibility & contrast

On white

13.04
#271F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F83
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F83#FFFFFF#000000##FFFFFF
##271F831.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271f83;
/* rgb */ color: rgb(39, 31, 131);
/* oklch */ color: oklch(32.8% 0.158 276.7);
Tailwind
colors: {
  custom: {
    50: '#705ca8',
    500: '#271f83',
    950: '#000000',
  },
}
SCSS
$custom: #271f83;
$custom-light: #705ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#271f83",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 244.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3281,
    "c": 0.15846,
    "h": 276.7
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271F83

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

Preview Lab → · Contrast checker → · Palette generator →

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