#271F6B#271F6B

#271F6B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.126 H 280.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#271F6B
RGBrgb(39, 31, 107)
HSLhsl(246, 55%, 27%)
HSVhsv(246, 71%, 42%)
CMYKcmyk(63.6%, 71%, 0%, 58%)
CIE-LABlab(17.79, 27.96, -43.10)
CIE-LCHlch(17.79, 51.37, 302.97°)
OKLaboklab(30.32% 0.023 -0.1241)
OKLCHoklch(30.32% 0.126 280.5)
XYZxyz(3.9797, 2.4726, 14.1746)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F6B #636B1F
analogous
#1F3D6B #271F6B #4D1F6B
triadic
#271F6B #6B271F #1F6B27
tetradic
#271F6B #6B1F3D #636B1F #1F6B4D
square
#271F6B #6B1F3D #636B1F #1F6B4D
split-complementary
#271F6B #6B4D1F #3D6B1F
monochromatic
#090718 #16113C #271F6B #382D9A #4C3DC7

Accessibility & contrast

On white

14.05
#271F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F6B
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F6B#FFFFFF#000000##FFFFFF
##271F6B1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271f6b;
/* rgb */ color: rgb(39, 31, 107);
/* oklch */ color: oklch(30.3% 0.126 280.5);
Tailwind
colors: {
  custom: {
    50: '#6a5b96',
    500: '#271f6b',
    950: '#000000',
  },
}
SCSS
$custom: #271f6b;
$custom-light: #6a5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#271f6b",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 246.316,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3032,
    "c": 0.12626,
    "h": 280.5
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#271F6B
secondary
#969F47
accent
#DE49CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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