#271D98#271D98

#271D98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.186 H 274.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#271D98
RGBrgb(39, 29, 152)
HSLhsl(245, 68%, 35%)
HSVhsv(245, 81%, 60%)
CMYKcmyk(74.3%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.22, 44.27, -64.28)
CIE-LCHlch(22.22, 78.05, 304.55°)
OKLaboklab(34.89% 0.0143 -0.1859)
OKLCHoklch(34.89% 0.186 274.4)
XYZxyz(6.9417, 3.5764, 30.0241)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D98 #8E981D
analogous
#1D5098 #271D98 #641D98
triadic
#271D98 #98271D #1D9827
tetradic
#271D98 #981D50 #8E981D #1D9864
square
#271D98 #981D50 #8E981D #1D9864
split-complementary
#271D98 #98641D #50981D
monochromatic
#0D0931 #1A1365 #271D98 #3427CB #5D52DE

Accessibility & contrast

On white

12.24
#271D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#271D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D98
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D98#FFFFFF#000000##FFFFFF
##271D981.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271d98;
/* rgb */ color: rgb(39, 29, 152);
/* oklch */ color: oklch(34.9% 0.186 274.4);
Tailwind
colors: {
  custom: {
    50: '#755cb8',
    500: '#271d98',
    950: '#000000',
  },
}
SCSS
$custom: #271d98;
$custom-light: #755cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271d98",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 244.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34894,
    "c": 0.18647,
    "h": 274.4
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#271D98
secondary
#B8C150
accent
#EB3DDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271D98

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

Preview Lab → · Contrast checker → · Palette generator →

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