#272197#272197

#272197 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.182 H 274.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#272197
RGBrgb(39, 33, 151)
HSLhsl(243, 64%, 36%)
HSVhsv(243, 78%, 59%)
CMYKcmyk(74.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.84, 41.83, -62.64)
CIE-LCHlch(22.84, 75.33, 303.73°)
OKLaboklab(35.29% 0.0129 -0.1812)
OKLCHoklch(35.29% 0.182 274.1)
XYZxyz(6.9646, 3.7527, 29.6295)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272197 #919721
analogous
#215697 #272197 #622197
triadic
#272197 #972721 #219727
tetradic
#272197 #972156 #919721 #219762
square
#272197 #972156 #919721 #219762
split-complementary
#272197 #976221 #569721
monochromatic
#0D0B33 #1A1665 #272197 #342CC9 #5F58DA

Accessibility & contrast

On white

12.00
#272197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#272197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272197
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272197#FFFFFF#000000##FFFFFF
##2721971.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272197;
/* rgb */ color: rgb(39, 33, 151);
/* oklch */ color: oklch(35.3% 0.182 274.1);
Tailwind
colors: {
  custom: {
    50: '#745fb7',
    500: '#272197',
    950: '#000000',
  },
}
SCSS
$custom: #272197;
$custom-light: #745fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#272197",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 243.051,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.18167,
    "h": 274.1
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#272197
secondary
#B9BE55
accent
#E741DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272197

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

Preview Lab → · Contrast checker → · Palette generator →

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