#271C90#271C90

#271C90 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.178 H 275.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#271C90
RGBrgb(39, 28, 144)
HSLhsl(246, 67%, 34%)
HSVhsv(246, 81%, 56%)
CMYKcmyk(72.9%, 80.6%, 0%, 43.5%)
CIE-LABlab(21.11, 42.21, -61.17)
CIE-LCHlch(21.11, 74.32, 304.61°)
OKLaboklab(33.85% 0.0168 -0.1768)
OKLCHoklch(33.85% 0.178 275.4)
XYZxyz(6.2843, 3.2749, 26.6811)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C90 #85901C
analogous
#1C4B90 #271C90 #611C90
triadic
#271C90 #90271C #1C9027
tetradic
#271C90 #901C4B #85901C #1C9061
square
#271C90 #901C4B #85901C #1C9061
split-complementary
#271C90 #90611C #4B901C
monochromatic
#0B082A #19125D #271C90 #3526C3 #584ADC

Accessibility & contrast

On white

12.69
#271C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C90
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C90#FFFFFF#000000##FFFFFF
##271C901.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271c90;
/* rgb */ color: rgb(39, 28, 144);
/* oklch */ color: oklch(33.9% 0.178 275.4);
Tailwind
colors: {
  custom: {
    50: '#735bb2',
    500: '#271c90',
    950: '#000000',
  },
}
SCSS
$custom: #271c90;
$custom-light: #735bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#271c90",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 245.69,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.17765,
    "h": 275.4
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#271C90
secondary
#B3BE4A
accent
#EA3DDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271C90

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

Preview Lab → · Contrast checker → · Palette generator →

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