#271F65#271F65

#271F65 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.118 H 281.7°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#271F65
RGBrgb(39, 31, 101)
HSLhsl(247, 53%, 26%)
HSVhsv(247, 69%, 40%)
CMYKcmyk(61.4%, 69.3%, 0%, 60.4%)
CIE-LABlab(17.23, 25.84, -40.09)
CIE-LCHlch(17.23, 47.70, 302.81°)
OKLaboklab(29.74% 0.0238 -0.1153)
OKLCHoklch(29.74% 0.118 281.7)
XYZxyz(3.6749, 2.3507, 12.5695)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F65 #5D651F
analogous
#1F3A65 #271F65 #4A1F65
triadic
#271F65 #65271F #1F6527
tetradic
#271F65 #651F3A #5D651F #1F654A
square
#271F65 #651F3A #5D651F #1F654A
split-complementary
#271F65 #654A1F #3A651F
monochromatic
#090717 #151136 #271F65 #392D94 #4B3CC3

Accessibility & contrast

On white

14.28
#271F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F65
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F65#FFFFFF#000000##FFFFFF
##271F651.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#04313F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271f65;
/* rgb */ color: rgb(39, 31, 101);
/* oklch */ color: oklch(29.7% 0.118 281.7);
Tailwind
colors: {
  custom: {
    50: '#695b92',
    500: '#271f65',
    950: '#000000',
  },
}
SCSS
$custom: #271f65;
$custom-light: #695b92;
$custom-dark: #000000;
JSON
{
  "hex": "#271f65",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 246.857,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29737,
    "c": 0.11777,
    "h": 281.7
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#271F65
secondary
#909946
accent
#DC4BCC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F65

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

Preview Lab → · Contrast checker → · Palette generator →

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