#272271#272271

#272271 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.131 H 278.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#272271
RGBrgb(39, 34, 113)
HSLhsl(244, 54%, 29%)
HSVhsv(244, 70%, 44%)
CMYKcmyk(65.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.09, 28.14, -44.87)
CIE-LCHlch(19.09, 52.97, 302.09°)
OKLaboklab(31.43% 0.0195 -0.1294)
OKLCHoklch(31.43% 0.131 278.6)
XYZxyz(4.3884, 2.7673, 15.9225)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272271 #6C7122
analogous
#224571 #272271 #4F2271
triadic
#272271 #712722 #227127
tetradic
#272271 #712245 #6C7122 #22714F
square
#272271 #712245 #6C7122 #22714F
split-complementary
#272271 #714F22 #457122
monochromatic
#080718 #171442 #272271 #3730A0 #4E46C7

Accessibility & contrast

On white

13.52
#272271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#272271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272271
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272271#FFFFFF#000000##FFFFFF
##2722711.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #272271;
/* rgb */ color: rgb(39, 34, 113);
/* oklch */ color: oklch(31.4% 0.131 278.6);
Tailwind
colors: {
  custom: {
    50: '#6b5e9b',
    500: '#272271',
    950: '#000000',
  },
}
SCSS
$custom: #272271;
$custom-light: #6b5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#272271",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 243.797,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3143,
    "c": 0.13082,
    "h": 278.6
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#272271
secondary
#9FA44A
accent
#DD4BD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #272271

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

Preview Lab → · Contrast checker → · Palette generator →

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