#271783#271783

#271783 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.166 H 277.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#271783
RGBrgb(39, 23, 131)
HSLhsl(249, 70%, 30%)
HSVhsv(249, 82%, 51%)
CMYKcmyk(70.2%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.72, 40.61, -56.97)
CIE-LCHlch(18.72, 69.96, 305.48°)
OKLaboklab(31.75% 0.0228 -0.1646)
OKLCHoklch(31.75% 0.166 277.9)
XYZxyz(5.2385, 2.6824, 21.7100)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271783 #738317
analogous
#173D83 #271783 #5D1783
triadic
#271783 #832717 #178327
tetradic
#271783 #83173D #738317 #17835D
square
#271783 #83173D #738317 #17835D
split-complementary
#271783 #835D17 #3D8317
monochromatic
#08051B #180E4F #271783 #3620B7 #5138DC

Accessibility & contrast

On white

13.67
#271783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271783
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271783#FFFFFF#000000##FFFFFF
##2717831.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271783;
/* rgb */ color: rgb(39, 23, 131);
/* oklch */ color: oklch(31.7% 0.166 277.9);
Tailwind
colors: {
  custom: {
    50: '#7058a8',
    500: '#271783',
    950: '#000000',
  },
}
SCSS
$custom: #271783;
$custom-light: #7058a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271783",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 248.889,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31746,
    "c": 0.16616,
    "h": 277.9
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#271783
secondary
#A5B73F
accent
#ED3BD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271783

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

Preview Lab → · Contrast checker → · Palette generator →

#271783 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva