#271E68#271E68

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

Color values

HEX#271E68
RGBrgb(39, 30, 104)
HSLhsl(247, 55%, 26%)
HSVhsv(247, 71%, 41%)
CMYKcmyk(62.5%, 71.2%, 0%, 59.2%)
CIE-LABlab(17.27, 27.55, -42.00)
CIE-LCHlch(17.27, 50.23, 303.27°)
OKLaboklab(29.85% 0.0244 -0.1209)
OKLCHoklch(29.85% 0.123 281.4)
XYZxyz(3.7989, 2.3591, 13.3492)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E68 #5F681E
analogous
#1E3A68 #271E68 #4C1E68
triadic
#271E68 #68271E #1E6827
tetradic
#271E68 #681E3A #5F681E #1E684C
square
#271E68 #681E3A #5F681E #1E684C
split-complementary
#271E68 #684C1E #3A681E
monochromatic
#090718 #151039 #271E68 #392C98 #4B3AC6

Accessibility & contrast

On white

14.27
#271E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E68
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E68#FFFFFF#000000##FFFFFF
##271E681.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271e68;
/* rgb */ color: rgb(39, 30, 104);
/* oklch */ color: oklch(29.9% 0.123 281.4);
Tailwind
colors: {
  custom: {
    50: '#695a94',
    500: '#271e68',
    950: '#000000',
  },
}
SCSS
$custom: #271e68;
$custom-light: #695a94;
$custom-dark: #000000;
JSON
{
  "hex": "#271e68",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 247.297,
    "s": 55.224,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29853,
    "c": 0.12335,
    "h": 281.4
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#271E68
secondary
#929D45
accent
#DF49CC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E68

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

Preview Lab → · Contrast checker → · Palette generator →

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