#271C83#271C83

#271C83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.162 H 277.2°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#271C83
RGBrgb(39, 28, 131)
HSLhsl(246, 65%, 31%)
HSVhsv(246, 79%, 51%)
CMYKcmyk(70.2%, 78.6%, 0%, 48.6%)
CIE-LABlab(19.64, 37.97, -55.46)
CIE-LCHlch(19.64, 67.21, 304.40°)
OKLaboklab(32.39% 0.0202 -0.1603)
OKLCHoklch(32.39% 0.162 277.2)
XYZxyz(5.3474, 2.9001, 21.7463)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C83 #78831C
analogous
#1C4483 #271C83 #5A1C83
triadic
#271C83 #83271C #1C8327
tetradic
#271C83 #831C44 #78831C #1C835A
square
#271C83 #831C44 #78831C #1C835A
split-complementary
#271C83 #835A1C #44831C
monochromatic
#09061E #181151 #271C83 #3627B5 #5243D7

Accessibility & contrast

On white

13.29
#271C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C83
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C83#FFFFFF#000000##FFFFFF
##271C831.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271c83;
/* rgb */ color: rgb(39, 28, 131);
/* oklch */ color: oklch(32.4% 0.162 277.2);
Tailwind
colors: {
  custom: {
    50: '#705ba8',
    500: '#271c83',
    950: '#000000',
  },
}
SCSS
$custom: #271c83;
$custom-light: #705ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#271c83",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 246.408,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32385,
    "c": 0.16153,
    "h": 277.2
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#271C83
secondary
#AAB645
accent
#E840D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C83

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

Preview Lab → · Contrast checker → · Palette generator →

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