#271F80#271F80

#271F80 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.155 H 277.1°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#271F80
RGBrgb(39, 31, 128)
HSLhsl(245, 61%, 31%)
HSVhsv(245, 76%, 50%)
CMYKcmyk(69.5%, 75.8%, 0%, 49.8%)
CIE-LABlab(19.92, 35.24, -53.10)
CIE-LCHlch(19.92, 63.73, 303.58°)
OKLaboklab(32.49% 0.0191 -0.1534)
OKLCHoklch(32.49% 0.155 277.1)
XYZxyz(5.2217, 2.9694, 20.7159)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F80 #78801F
analogous
#1F4780 #271F80 #571F80
triadic
#271F80 #80271F #1F8027
tetradic
#271F80 #801F47 #78801F #1F8057
square
#271F80 #801F47 #78801F #1F8057
split-complementary
#271F80 #80571F #47801F
monochromatic
#09071D #18134F #271F80 #362BB1 #5247D2

Accessibility & contrast

On white

13.17
#271F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F80
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F80#FFFFFF#000000##FFFFFF
##271F801.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271f80;
/* rgb */ color: rgb(39, 31, 128);
/* oklch */ color: oklch(32.5% 0.155 277.1);
Tailwind
colors: {
  custom: {
    50: '#6f5ca6',
    500: '#271f80',
    950: '#000000',
  },
}
SCSS
$custom: #271f80;
$custom-light: #6f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#271f80",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 244.948,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32487,
    "c": 0.15458,
    "h": 277.1
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#271F80
secondary
#AAB348
accent
#E444D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F80

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

Preview Lab → · Contrast checker → · Palette generator →

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