#271E63#271E63

#271E63 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.4% C 0.116 H 282.5°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#271E63
RGBrgb(39, 30, 99)
HSLhsl(248, 53%, 25%)
HSVhsv(248, 70%, 39%)
CMYKcmyk(60.6%, 69.7%, 0%, 61.2%)
CIE-LABlab(16.80, 25.80, -39.48)
CIE-LCHlch(16.80, 47.16, 303.17°)
OKLaboklab(29.37% 0.0251 -0.1135)
OKLCHoklch(29.37% 0.116 282.5)
XYZxyz(3.5524, 2.2605, 12.0511)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E63 #5A631E
analogous
#1E3763 #271E63 #491E63
triadic
#271E63 #63271E #1E6327
tetradic
#271E63 #631E37 #5A631E #1E6349
square
#271E63 #631E37 #5A631E #1E6349
split-complementary
#271E63 #63491E #37631E
monochromatic
#090717 #141034 #271E63 #3A2C92 #4C3AC1

Accessibility & contrast

On white

14.46
#271E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E63
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E63#FFFFFF#000000##FFFFFF
##271E631.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#072F3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271e63;
/* rgb */ color: rgb(39, 30, 99);
/* oklch */ color: oklch(29.4% 0.116 282.5);
Tailwind
colors: {
  custom: {
    50: '#685a90',
    500: '#271e63',
    950: '#000000',
  },
}
SCSS
$custom: #271e63;
$custom-light: #685a90;
$custom-dark: #000000;
JSON
{
  "hex": "#271e63",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 247.826,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29367,
    "c": 0.11626,
    "h": 282.5
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#271E63
secondary
#8D9845
accent
#DD4BCA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #271E63

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

Preview Lab → · Contrast checker → · Palette generator →

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