#271C94#271C94

#271C94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.182 H 275.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#271C94
RGBrgb(39, 28, 148)
HSLhsl(246, 68%, 35%)
HSVhsv(246, 81%, 58%)
CMYKcmyk(73.6%, 81.1%, 0%, 42%)
CIE-LABlab(21.58, 43.50, -62.88)
CIE-LCHlch(21.58, 76.46, 304.67°)
OKLaboklab(34.31% 0.0158 -0.1818)
OKLCHoklch(34.31% 0.183 275)
XYZxyz(6.5955, 3.3993, 28.3198)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C94 #89941C
analogous
#1C4D94 #271C94 #631C94
triadic
#271C94 #94271C #1C9427
tetradic
#271C94 #941C4D #89941C #1C9463
square
#271C94 #941C4D #89941C #1C9463
split-complementary
#271C94 #94631C #4D941C
monochromatic
#0C092D #191261 #271C94 #3526C7 #5A4DDD

Accessibility & contrast

On white

12.50
#271C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#271C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C94
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C94#FFFFFF#000000##FFFFFF
##271C941.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271c94;
/* rgb */ color: rgb(39, 28, 148);
/* oklch */ color: oklch(34.3% 0.182 275.0);
Tailwind
colors: {
  custom: {
    50: '#745cb5',
    500: '#271c94',
    950: '#000000',
  },
}
SCSS
$custom: #271c94;
$custom-light: #745cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#271c94",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 245.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34311,
    "c": 0.1825,
    "h": 275
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271C94

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

Preview Lab → · Contrast checker → · Palette generator →

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