#271F7A#271F7A

#271F7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.147 H 278.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#271F7A
RGBrgb(39, 31, 122)
HSLhsl(245, 59%, 30%)
HSVhsv(245, 75%, 48%)
CMYKcmyk(68%, 74.6%, 0%, 52.2%)
CIE-LABlab(19.29, 33.19, -50.32)
CIE-LCHlch(19.29, 60.28, 303.41°)
OKLaboklab(31.85% 0.0203 -0.1453)
OKLCHoklch(31.85% 0.147 278)
XYZxyz(4.8384, 2.8160, 18.6972)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F7A #727A1F
analogous
#1F447A #271F7A #551F7A
triadic
#271F7A #7A271F #1F7A27
tetradic
#271F7A #7A1F44 #727A1F #1F7A55
square
#271F7A #7A1F44 #727A1F #1F7A55
split-complementary
#271F7A #7A551F #447A1F
monochromatic
#080618 #171349 #271F7A #372BAB #5044CF

Accessibility & contrast

On white

13.43
#271F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F7A
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F7A#FFFFFF#000000##FFFFFF
##271F7A1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271f7a;
/* rgb */ color: rgb(39, 31, 122);
/* oklch */ color: oklch(31.9% 0.147 278.0);
Tailwind
colors: {
  custom: {
    50: '#6d5ca1',
    500: '#271f7a',
    950: '#000000',
  },
}
SCSS
$custom: #271f7a;
$custom-light: #6d5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#271f7a",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 245.275,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.14669,
    "h": 278
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#271F7A
secondary
#A4AD47
accent
#E345D5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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