#271F7D#271F7D

#271F7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 277.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#271F7D
RGBrgb(39, 31, 125)
HSLhsl(245, 60%, 31%)
HSVhsv(245, 75%, 49%)
CMYKcmyk(68.8%, 75.2%, 0%, 51%)
CIE-LABlab(19.60, 34.22, -51.72)
CIE-LCHlch(19.60, 62.01, 303.49°)
OKLaboklab(32.17% 0.0197 -0.1494)
OKLCHoklch(32.17% 0.151 277.5)
XYZxyz(5.0272, 2.8915, 19.6913)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F7D #757D1F
analogous
#1F467D #271F7D #561F7D
triadic
#271F7D #7D271F #1F7D27
tetradic
#271F7D #7D1F46 #757D1F #1F7D56
square
#271F7D #7D1F46 #757D1F #1F7D56
split-complementary
#271F7D #7D561F #467D1F
monochromatic
#08071B #18134C #271F7D #362BAE #5145D1

Accessibility & contrast

On white

13.30
#271F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F7D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F7D#FFFFFF#000000##FFFFFF
##271F7D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271f7d;
/* rgb */ color: rgb(39, 31, 125);
/* oklch */ color: oklch(32.2% 0.151 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e5ca4',
    500: '#271f7d',
    950: '#000000',
  },
}
SCSS
$custom: #271f7d;
$custom-light: #6e5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#271f7d",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 245.106,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32167,
    "c": 0.15065,
    "h": 277.5
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#271F7D
secondary
#A7B048
accent
#E344D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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