#272497#272497

#272497 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.179 H 273.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#272497
RGBrgb(39, 36, 151)
HSLhsl(242, 61%, 37%)
HSVhsv(242, 76%, 59%)
CMYKcmyk(74.2%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.43, 40.15, -61.67)
CIE-LCHlch(23.43, 73.59, 303.07°)
OKLaboklab(35.71% 0.0115 -0.1784)
OKLCHoklch(35.71% 0.179 273.7)
XYZxyz(7.0516, 3.9267, 29.6585)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272497 #949724
analogous
#245B97 #272497 #612497
triadic
#272497 #972724 #249727
tetradic
#272497 #97245B #949724 #249761
square
#272497 #97245B #949724 #249761
split-complementary
#272497 #976124 #5B9724
monochromatic
#0D0C34 #1A1866 #272497 #3430C8 #605DD8

Accessibility & contrast

On white

11.76
#272497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#272497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272497
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272497#FFFFFF#000000##FFFFFF
##2724971.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272497;
/* rgb */ color: rgb(39, 36, 151);
/* oklch */ color: oklch(35.7% 0.179 273.7);
Tailwind
colors: {
  custom: {
    50: '#7460b7',
    500: '#272497',
    950: '#000000',
  },
}
SCSS
$custom: #272497;
$custom-light: #7460b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272497",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 241.565,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3571,
    "c": 0.17877,
    "h": 273.7
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#272497
secondary
#BBBD5A
accent
#E543E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272497

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

Preview Lab → · Contrast checker → · Palette generator →

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