#272371#272371

#272371 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.130 H 278.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#272371
RGBrgb(39, 35, 113)
HSLhsl(243, 53%, 29%)
HSVhsv(243, 69%, 44%)
CMYKcmyk(65.5%, 69%, 0%, 55.7%)
CIE-LABlab(19.33, 27.48, -44.48)
CIE-LCHlch(19.33, 52.28, 301.71°)
OKLaboklab(31.61% 0.0186 -0.1282)
OKLCHoklch(31.61% 0.13 278.3)
XYZxyz(4.4174, 2.8253, 15.9321)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272371 #6D7123
analogous
#234671 #272371 #4E2371
triadic
#272371 #712723 #237127
tetradic
#272371 #712346 #6D7123 #23714E
square
#272371 #712346 #6D7123 #23714E
split-complementary
#272371 #714E23 #467123
monochromatic
#080717 #171542 #272371 #3731A0 #4F48C6

Accessibility & contrast

On white

13.42
#272371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#272371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272371
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272371#FFFFFF#000000##FFFFFF
##2723711.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #272371;
/* rgb */ color: rgb(39, 35, 113);
/* oklch */ color: oklch(31.6% 0.130 278.3);
Tailwind
colors: {
  custom: {
    50: '#6b5e9b',
    500: '#272371',
    950: '#000000',
  },
}
SCSS
$custom: #272371;
$custom-light: #6b5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#272371",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 243.077,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31606,
    "c": 0.12953,
    "h": 278.3
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#272371
secondary
#A0A44C
accent
#DC4CD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #272371

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

Preview Lab → · Contrast checker → · Palette generator →

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