#272181#272181

#272181 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.154 H 276.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#272181
RGBrgb(39, 33, 129)
HSLhsl(244, 59%, 32%)
HSVhsv(244, 74%, 51%)
CMYKcmyk(69.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.45, 34.39, -52.85)
CIE-LCHlch(20.45, 63.06, 303.05°)
OKLaboklab(32.9% 0.0176 -0.1527)
OKLCHoklch(32.9% 0.154 276.6)
XYZxyz(5.3417, 3.1036, 21.0822)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272181 #7B8121
analogous
#214B81 #272181 #572181
triadic
#272181 #812721 #218127
tetradic
#272181 #81214B #7B8121 #218157
square
#272181 #81214B #7B8121 #218157
split-complementary
#272181 #815721 #4B8121
monochromatic
#0A0820 #181550 #272181 #362DB2 #544BD1

Accessibility & contrast

On white

12.96
#272181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#272181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272181
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272181#FFFFFF#000000##FFFFFF
##2721811.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #272181;
/* rgb */ color: rgb(39, 33, 129);
/* oklch */ color: oklch(32.9% 0.154 276.6);
Tailwind
colors: {
  custom: {
    50: '#6f5da7',
    500: '#272181',
    950: '#000000',
  },
}
SCSS
$custom: #272181;
$custom-light: #6f5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#272181",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 243.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32897,
    "c": 0.1537,
    "h": 276.6
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#272181
secondary
#ADB44A
accent
#E245D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #272181

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

Preview Lab → · Contrast checker → · Palette generator →

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