#271E65#271E65

#271E65 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.6% C 0.119 H 282.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#271E65
RGBrgb(39, 30, 101)
HSLhsl(248, 54%, 26%)
HSVhsv(248, 70%, 40%)
CMYKcmyk(61.4%, 70.3%, 0%, 60.4%)
CIE-LABlab(16.98, 26.50, -40.49)
CIE-LCHlch(16.98, 48.39, 303.20°)
OKLaboklab(29.56% 0.0248 -0.1165)
OKLCHoklch(29.56% 0.119 282)
XYZxyz(3.6492, 2.2992, 12.5609)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E65 #5C651E
analogous
#1E3865 #271E65 #4A1E65
triadic
#271E65 #65271E #1E6527
tetradic
#271E65 #651E38 #5C651E #1E654A
square
#271E65 #651E38 #5C651E #1E654A
split-complementary
#271E65 #654A1E #38651E
monochromatic
#090718 #151036 #271E65 #392C94 #4B3AC3

Accessibility & contrast

On white

14.39
#271E65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271E65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E65
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E65#FFFFFF#000000##FFFFFF
##271E651.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#04303E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271e65;
/* rgb */ color: rgb(39, 30, 101);
/* oklch */ color: oklch(29.6% 0.119 282.0);
Tailwind
colors: {
  custom: {
    50: '#695a92',
    500: '#271e65',
    950: '#000000',
  },
}
SCSS
$custom: #271e65;
$custom-light: #695a92;
$custom-dark: #000000;
JSON
{
  "hex": "#271e65",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 101
  },
  "hsl": {
    "h": 247.606,
    "s": 54.198,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2956,
    "c": 0.11911,
    "h": 282
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#271E65
secondary
#8F9A45
accent
#DE4ACB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E65

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

Preview Lab → · Contrast checker → · Palette generator →

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