#271F7E#271F7E

#271F7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.152 H 277.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#271F7E
RGBrgb(39, 31, 126)
HSLhsl(245, 61%, 31%)
HSVhsv(245, 75%, 49%)
CMYKcmyk(69%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.71, 34.56, -52.18)
CIE-LCHlch(19.71, 62.59, 303.52°)
OKLaboklab(32.27% 0.0195 -0.1507)
OKLCHoklch(32.27% 0.152 277.4)
XYZxyz(5.0914, 2.9172, 20.0294)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F7E #767E1F
analogous
#1F467E #271F7E #561F7E
triadic
#271F7E #7E271F #1F7E27
tetradic
#271F7E #7E1F46 #767E1F #1F7E56
square
#271F7E #7E1F46 #767E1F #1F7E56
split-complementary
#271F7E #7E561F #467E1F
monochromatic
#09071C #18134D #271F7E #362BAF #5246D1

Accessibility & contrast

On white

13.26
#271F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F7E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F7E#FFFFFF#000000##FFFFFF
##271F7E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271f7e;
/* rgb */ color: rgb(39, 31, 126);
/* oklch */ color: oklch(32.3% 0.152 277.4);
Tailwind
colors: {
  custom: {
    50: '#6e5ca4',
    500: '#271f7e',
    950: '#000000',
  },
}
SCSS
$custom: #271f7e;
$custom-light: #6e5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#271f7e",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 245.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32273,
    "c": 0.15197,
    "h": 277.4
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#271F7E
secondary
#A8B148
accent
#E444D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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