#271F69#271F69

#271F69 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.123 H 280.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#271F69
RGBrgb(39, 31, 105)
HSLhsl(246, 54%, 27%)
HSVhsv(246, 70%, 41%)
CMYKcmyk(62.9%, 70.5%, 0%, 58.8%)
CIE-LABlab(17.60, 27.25, -42.10)
CIE-LCHlch(17.60, 50.15, 302.92°)
OKLaboklab(30.12% 0.0233 -0.1212)
OKLCHoklch(30.12% 0.123 280.9)
XYZxyz(3.8757, 2.4310, 13.6269)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F69 #61691F
analogous
#1F3C69 #271F69 #4C1F69
triadic
#271F69 #69271F #1F6927
tetradic
#271F69 #691F3C #61691F #1F694C
square
#271F69 #691F3C #61691F #1F694C
split-complementary
#271F69 #694C1F #3C691F
monochromatic
#090718 #15113A #271F69 #392D98 #4C3DC6

Accessibility & contrast

On white

14.13
#271F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F69
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F69#FFFFFF#000000##FFFFFF
##271F691.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f69;
/* rgb */ color: rgb(39, 31, 105);
/* oklch */ color: oklch(30.1% 0.123 280.9);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#271f69',
    950: '#000000',
  },
}
SCSS
$custom: #271f69;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#271f69",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 246.486,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30123,
    "c": 0.12345,
    "h": 280.9
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#271F69
secondary
#949D47
accent
#DE4ACE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F69

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

Preview Lab → · Contrast checker → · Palette generator →

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