#271E62#271E62

#271E62 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.3% C 0.115 H 282.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#271E62
RGBrgb(39, 30, 98)
HSLhsl(248, 53%, 25%)
HSVhsv(248, 69%, 38%)
CMYKcmyk(60.2%, 69.4%, 0%, 61.6%)
CIE-LABlab(16.71, 25.45, -38.97)
CIE-LCHlch(16.71, 46.54, 303.15°)
OKLaboklab(29.27% 0.0252 -0.112)
OKLCHoklch(29.27% 0.115 282.7)
XYZxyz(3.5049, 2.2415, 11.8009)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E62 #59621E
analogous
#1E3762 #271E62 #491E62
triadic
#271E62 #62271E #1E6227
tetradic
#271E62 #621E37 #59621E #1E6249
square
#271E62 #621E37 #59621E #1E6249
split-complementary
#271E62 #62491E #37621E
monochromatic
#090717 #141033 #271E62 #3A2C91 #4C3BC0

Accessibility & contrast

On white

14.50
#271E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E62
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E62#FFFFFF#000000##FFFFFF
##271E621.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#092F3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271e62;
/* rgb */ color: rgb(39, 30, 98);
/* oklch */ color: oklch(29.3% 0.115 282.7);
Tailwind
colors: {
  custom: {
    50: '#685a8f',
    500: '#271e62',
    950: '#000000',
  },
}
SCSS
$custom: #271e62;
$custom-light: #685a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#271e62",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 247.941,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29272,
    "c": 0.11483,
    "h": 282.7
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#271E62
secondary
#8C9745
accent
#DD4BC9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #271E62

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

Preview Lab → · Contrast checker → · Palette generator →

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