#272391#272391

#272391 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.172 H 274.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#272391
RGBrgb(39, 35, 145)
HSLhsl(242, 61%, 35%)
HSVhsv(242, 76%, 57%)
CMYKcmyk(73.1%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.57, 38.69, -59.37)
CIE-LCHlch(22.57, 70.87, 303.09°)
OKLaboklab(34.91% 0.0132 -0.1717)
OKLCHoklch(34.91% 0.172 274.4)
XYZxyz(6.5469, 3.6771, 27.1473)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272391 #8D9123
analogous
#235691 #272391 #5E2391
triadic
#272391 #912723 #239127
tetradic
#272391 #912356 #8D9123 #23915E
square
#272391 #912356 #8D9123 #23915E
split-complementary
#272391 #915E23 #569123
monochromatic
#0C0B2E #1A1760 #272391 #342FC2 #5C58D7

Accessibility & contrast

On white

12.10
#272391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#272391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272391
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272391#FFFFFF#000000##FFFFFF
##2723911.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272391;
/* rgb */ color: rgb(39, 35, 145);
/* oklch */ color: oklch(34.9% 0.172 274.4);
Tailwind
colors: {
  custom: {
    50: '#7260b2',
    500: '#272391',
    950: '#000000',
  },
}
SCSS
$custom: #272391;
$custom-light: #7260b2;
$custom-dark: #000000;
JSON
{
  "hex": "#272391",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 242.182,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.17222,
    "h": 274.4
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#272391
secondary
#B7BB55
accent
#E444DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272391

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

Preview Lab → · Contrast checker → · Palette generator →

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