#271F68#271F68

#271F68 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.122 H 281.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#271F68
RGBrgb(39, 31, 104)
HSLhsl(247, 54%, 26%)
HSVhsv(247, 70%, 41%)
CMYKcmyk(62.5%, 70.2%, 0%, 59.2%)
CIE-LABlab(17.51, 26.90, -41.60)
CIE-LCHlch(17.51, 49.54, 302.89°)
OKLaboklab(30.03% 0.0234 -0.1198)
OKLCHoklch(30.03% 0.122 281.1)
XYZxyz(3.8246, 2.4105, 13.3578)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F68 #60681F
analogous
#1F3C68 #271F68 #4C1F68
triadic
#271F68 #68271F #1F6827
tetradic
#271F68 #681F3C #60681F #1F684C
square
#271F68 #681F3C #60681F #1F684C
split-complementary
#271F68 #684C1F #3C681F
monochromatic
#090718 #151139 #271F68 #392D97 #4B3CC5

Accessibility & contrast

On white

14.17
#271F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F68
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F68#FFFFFF#000000##FFFFFF
##271F681.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271f68;
/* rgb */ color: rgb(39, 31, 104);
/* oklch */ color: oklch(30.0% 0.122 281.1);
Tailwind
colors: {
  custom: {
    50: '#695b94',
    500: '#271f68',
    950: '#000000',
  },
}
SCSS
$custom: #271f68;
$custom-light: #695b94;
$custom-dark: #000000;
JSON
{
  "hex": "#271f68",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 246.575,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30026,
    "c": 0.12204,
    "h": 281.1
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#271F68
secondary
#939C46
accent
#DD4ACD
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F68

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

Preview Lab → · Contrast checker → · Palette generator →

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