#271F6A#271F6A

#271F6A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.125 H 280.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#271F6A
RGBrgb(39, 31, 106)
HSLhsl(246, 55%, 27%)
HSVhsv(246, 71%, 42%)
CMYKcmyk(63.2%, 70.8%, 0%, 58.4%)
CIE-LABlab(17.70, 27.61, -42.60)
CIE-LCHlch(17.70, 50.77, 302.95°)
OKLaboklab(30.22% 0.0232 -0.1227)
OKLCHoklch(30.22% 0.125 280.7)
XYZxyz(3.9274, 2.4516, 13.8991)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F6A #626A1F
analogous
#1F3D6A #271F6A #4D1F6A
triadic
#271F6A #6A271F #1F6A27
tetradic
#271F6A #6A1F3D #626A1F #1F6A4D
square
#271F6A #6A1F3D #626A1F #1F6A4D
split-complementary
#271F6A #6A4D1F #3D6A1F
monochromatic
#090718 #16113B #271F6A #382D99 #4C3DC6

Accessibility & contrast

On white

14.09
#271F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F6A
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F6A#FFFFFF#000000##FFFFFF
##271F6A1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271f6a;
/* rgb */ color: rgb(39, 31, 106);
/* oklch */ color: oklch(30.2% 0.125 280.7);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#271f6a',
    950: '#000000',
  },
}
SCSS
$custom: #271f6a;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#271f6a",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 246.4,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30221,
    "c": 0.12486,
    "h": 280.7
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#271F6A
secondary
#959E47
accent
#DE4ACE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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