#272147#272147

#272147 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.068 H 288.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#272147
RGBrgb(39, 33, 71)
HSLhsl(249, 37%, 20%)
HSVhsv(249, 54%, 28%)
CMYKcmyk(45.1%, 53.5%, 0%, 72.2%)
CIE-LABlab(15.35, 13.92, -22.93)
CIE-LCHlch(15.35, 26.82, 301.26°)
OKLaboklab(27.58% 0.0215 -0.0649)
OKLCHoklch(27.58% 0.068 288.3)
XYZxyz(2.5176, 1.9739, 6.2084)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272147 #414721
analogous
#212E47 #272147 #3A2147
triadic
#272147 #472721 #214727
tetradic
#272147 #47212E #414721 #21473A
square
#272147 #47212E #414721 #21473A
split-complementary
#272147 #473A21 #2E4721
monochromatic
#0B0A15 #100E1D #272147 #3E3471 #55489B

Accessibility & contrast

On white

15.06
#272147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#272147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272147
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272147#FFFFFF#000000##FFFFFF
##2721471.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122748
Deuteranopia (green-blind)
#122546
Tritanopia (blue-blind)
#1E2930
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #272147;
/* rgb */ color: rgb(39, 33, 71);
/* oklch */ color: oklch(27.6% 0.068 288.3);
Tailwind
colors: {
  custom: {
    50: '#635c7a',
    500: '#272147',
    950: '#000000',
  },
}
SCSS
$custom: #272147;
$custom-light: #635c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#272147",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 249.474,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27584,
    "c": 0.06835,
    "h": 288.3
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#272147
secondary
#737B49
accent
#CD5BBB
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #272147

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

Preview Lab → · Contrast checker → · Palette generator →

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