#271E90#271E90

#271E90 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.176 H 275.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#271E90
RGBrgb(39, 30, 144)
HSLhsl(245, 66%, 34%)
HSVhsv(245, 79%, 56%)
CMYKcmyk(72.9%, 79.2%, 0%, 43.5%)
CIE-LABlab(21.48, 41.16, -60.56)
CIE-LCHlch(21.48, 73.22, 304.20°)
OKLaboklab(34.11% 0.0159 -0.1751)
OKLCHoklch(34.11% 0.176 275.2)
XYZxyz(6.3334, 3.3729, 26.6974)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E90 #87901E
analogous
#1E4E90 #271E90 #601E90
triadic
#271E90 #90271E #1E9027
tetradic
#271E90 #901E4E #87901E #1E9060
square
#271E90 #901E4E #87901E #1E9060
split-complementary
#271E90 #90601E #4E901E
monochromatic
#0C092B #19135D #271E90 #3529C3 #594EDA

Accessibility & contrast

On white

12.54
#271E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#271E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E90
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E90#FFFFFF#000000##FFFFFF
##271E901.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271e90;
/* rgb */ color: rgb(39, 30, 144);
/* oklch */ color: oklch(34.1% 0.176 275.2);
Tailwind
colors: {
  custom: {
    50: '#735cb2',
    500: '#271e90',
    950: '#000000',
  },
}
SCSS
$custom: #271e90;
$custom-light: #735cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#271e90",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 244.737,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34108,
    "c": 0.17584,
    "h": 275.2
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#271E90
secondary
#B4BD4D
accent
#E83FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271E90

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

Preview Lab → · Contrast checker → · Palette generator →

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