#272799#272799

#272799 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.178 H 273.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#272799
RGBrgb(39, 39, 153)
HSLhsl(240, 59%, 38%)
HSVhsv(240, 75%, 60%)
CMYKcmyk(74.5%, 74.5%, 0%, 40%)
CIE-LABlab(24.26, 39.09, -61.52)
CIE-LCHlch(24.26, 72.89, 302.43°)
OKLaboklab(36.37% 0.0096 -0.178)
OKLCHoklch(36.37% 0.178 273.1)
XYZxyz(7.3101, 4.1815, 30.5527)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272799 #999927
analogous
#276099 #272799 #602799
triadic
#272799 #992727 #279927
tetradic
#272799 #992760 #999927 #279960
square
#272799 #992760 #999927 #279960
split-complementary
#272799 #996027 #609927
monochromatic
#0E0E37 #1B1B68 #272799 #3333CA #6363D7

Accessibility & contrast

On white

11.44
#272799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#272799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272799
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272799#FFFFFF#000000##FFFFFF
##2727991.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272799;
/* rgb */ color: rgb(39, 39, 153);
/* oklch */ color: oklch(36.4% 0.178 273.1);
Tailwind
colors: {
  custom: {
    50: '#7462b8',
    500: '#272799',
    950: '#000000',
  },
}
SCSS
$custom: #272799;
$custom-light: #7462b8;
$custom-dark: #000000;
JSON
{
  "hex": "#272799",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36367,
    "c": 0.17825,
    "h": 273.1
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#272799
secondary
#BDBD5F
accent
#E345E3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #272799

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

Preview Lab → · Contrast checker → · Palette generator →

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