#272997#272997

#272997 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.174 H 272.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#272997
RGBrgb(39, 41, 151)
HSLhsl(239, 59%, 37%)
HSVhsv(239, 74%, 59%)
CMYKcmyk(74.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.48, 37.20, -59.93)
CIE-LCHlch(24.48, 70.53, 301.83°)
OKLaboklab(36.46% 0.0089 -0.1734)
OKLCHoklch(36.46% 0.174 272.9)
XYZxyz(7.2137, 4.2508, 29.7125)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272997 #979527
analogous
#276197 #272997 #5D2797
triadic
#272997 #972729 #299727
tetradic
#272997 #972761 #979527 #27975D
square
#272997 #972761 #979527 #27975D
split-complementary
#272997 #975D27 #619727
monochromatic
#0E0F36 #1A1C66 #272997 #3436C8 #6264D6

Accessibility & contrast

On white

11.35
#272997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#272997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272997
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272997#FFFFFF#000000##FFFFFF
##2729971.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272997;
/* rgb */ color: rgb(39, 41, 151);
/* oklch */ color: oklch(36.5% 0.174 272.9);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#272997',
    950: '#000000',
  },
}
SCSS
$custom: #272997;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272997",
  "rgb": {
    "r": 39,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 238.929,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36462,
    "c": 0.17359,
    "h": 272.9
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#272997
secondary
#BCBA5E
accent
#DF46E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #272997

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

Preview Lab → · Contrast checker → · Palette generator →

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