#271782#271782

#271782 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.165 H 278.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#271782
RGBrgb(39, 23, 130)
HSLhsl(249, 70%, 30%)
HSVhsv(249, 82%, 51%)
CMYKcmyk(70%, 82.3%, 0%, 49%)
CIE-LABlab(18.61, 40.29, -56.53)
CIE-LCHlch(18.61, 69.42, 305.48°)
OKLaboklab(31.63% 0.0231 -0.1633)
OKLCHoklch(31.63% 0.165 278)
XYZxyz(5.1711, 2.6554, 21.3548)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271782 #728217
analogous
#173C82 #271782 #5D1782
triadic
#271782 #822717 #178227
tetradic
#271782 #82173C #728217 #17825D
square
#271782 #82173C #728217 #17825D
split-complementary
#271782 #825D17 #3C8217
monochromatic
#08051A #170E4E #271782 #3720B6 #5038DC

Accessibility & contrast

On white

13.71
#271782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271782
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271782#FFFFFF#000000##FFFFFF
##2717821.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271782;
/* rgb */ color: rgb(39, 23, 130);
/* oklch */ color: oklch(31.6% 0.165 278.0);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#271782',
    950: '#000000',
  },
}
SCSS
$custom: #271782;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271782",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 248.972,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31631,
    "c": 0.16494,
    "h": 278
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#271782
secondary
#A4B63E
accent
#ED3BD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271782

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

Preview Lab → · Contrast checker → · Palette generator →

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