#272159#272159

#272159 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.0% C 0.097 H 283.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#272159
RGBrgb(39, 33, 89)
HSLhsl(246, 46%, 24%)
HSVhsv(246, 63%, 35%)
CMYKcmyk(56.2%, 62.9%, 0%, 65.1%)
CIE-LABlab(16.70, 20.22, -32.99)
CIE-LCHlch(16.70, 38.69, 301.51°)
OKLaboklab(29.02% 0.0225 -0.0944)
OKLCHoklch(29.02% 0.097 283.4)
XYZxyz(3.1832, 2.2401, 9.7139)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272159 #535921
analogous
#213759 #272159 #432159
triadic
#272159 #592721 #215927
tetradic
#272159 #592137 #535921 #215943
square
#272159 #592137 #535921 #215943
split-complementary
#272159 #594321 #375921
monochromatic
#0A0816 #13102C #272159 #3B3286 #4E42B2

Accessibility & contrast

On white

14.50
#272159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#272159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272159
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272159#FFFFFF#000000##FFFFFF
##2721591.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#132E39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #272159;
/* rgb */ color: rgb(39, 33, 89);
/* oklch */ color: oklch(29.0% 0.097 283.4);
Tailwind
colors: {
  custom: {
    50: '#665c88',
    500: '#272159',
    950: '#000000',
  },
}
SCSS
$custom: #272159;
$custom-light: #665c88;
$custom-dark: #000000;
JSON
{
  "hex": "#272159",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 246.429,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29022,
    "c": 0.09708,
    "h": 283.4
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#272159
secondary
#868D49
accent
#D652C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #272159

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

Preview Lab → · Contrast checker → · Palette generator →

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