#271C95#271C95

#271C95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.184 H 274.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#271C95
RGBrgb(39, 28, 149)
HSLhsl(245, 68%, 35%)
HSVhsv(245, 81%, 58%)
CMYKcmyk(73.8%, 81.2%, 0%, 41.6%)
CIE-LABlab(21.69, 43.82, -63.30)
CIE-LCHlch(21.69, 76.99, 304.69°)
OKLaboklab(34.43% 0.0155 -0.1831)
OKLCHoklch(34.43% 0.184 274.8)
XYZxyz(6.6750, 3.4311, 28.7384)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C95 #8A951C
analogous
#1C4D95 #271C95 #641C95
triadic
#271C95 #95271C #1C9527
tetradic
#271C95 #951C4D #8A951C #1C9564
square
#271C95 #951C4D #8A951C #1C9564
split-complementary
#271C95 #95641C #4D951C
monochromatic
#0C092E #1A1261 #271C95 #3426C9 #5B4EDE

Accessibility & contrast

On white

12.45
#271C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C95
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C95#FFFFFF#000000##FFFFFF
##271C951.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271c95;
/* rgb */ color: rgb(39, 28, 149);
/* oklch */ color: oklch(34.4% 0.184 274.8);
Tailwind
colors: {
  custom: {
    50: '#745cb5',
    500: '#271c95',
    950: '#000000',
  },
}
SCSS
$custom: #271c95;
$custom-light: #745cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#271c95",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 245.455,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34427,
    "c": 0.18372,
    "h": 274.8
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#271C95
secondary
#B6C04D
accent
#EB3DDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271C95

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

Preview Lab → · Contrast checker → · Palette generator →

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