#272797#272797

#272797 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.176 H 273.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#272797
RGBrgb(39, 39, 151)
HSLhsl(240, 59%, 37%)
HSVhsv(240, 74%, 59%)
CMYKcmyk(74.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.05, 38.40, -60.64)
CIE-LCHlch(24.05, 71.77, 302.34°)
OKLaboklab(36.15% 0.01 -0.1754)
OKLCHoklch(36.15% 0.176 273.3)
XYZxyz(7.1463, 4.1160, 29.6900)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272797 #979727
analogous
#275F97 #272797 #5F2797
triadic
#272797 #972727 #279727
tetradic
#272797 #97275F #979727 #27975F
square
#272797 #97275F #979727 #27975F
split-complementary
#272797 #975F27 #5F9727
monochromatic
#0E0E36 #1A1A66 #272797 #3434C8 #6262D6

Accessibility & contrast

On white

11.52
#272797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#272797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272797
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272797#FFFFFF#000000##FFFFFF
##2727971.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272797;
/* rgb */ color: rgb(39, 39, 151);
/* oklch */ color: oklch(36.2% 0.176 273.3);
Tailwind
colors: {
  custom: {
    50: '#7462b7',
    500: '#272797',
    950: '#000000',
  },
}
SCSS
$custom: #272797;
$custom-light: #7462b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272797",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36153,
    "c": 0.17571,
    "h": 273.3
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#272797
secondary
#BCBC5E
accent
#E246E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272797

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

Preview Lab → · Contrast checker → · Palette generator →

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