#272198#272198

#272198 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.183 H 274.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#272198
RGBrgb(39, 33, 152)
HSLhsl(243, 64%, 36%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(74.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.95, 42.16, -63.07)
CIE-LCHlch(22.95, 75.87, 303.76°)
OKLaboklab(35.41% 0.0127 -0.1825)
OKLCHoklch(35.41% 0.183 274)
XYZxyz(7.0462, 3.7853, 30.0590)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272198 #929821
analogous
#215798 #272198 #632198
triadic
#272198 #982721 #219827
tetradic
#272198 #982157 #929821 #219863
square
#272198 #982157 #929821 #219863
split-complementary
#272198 #986321 #579821
monochromatic
#0D0B33 #1A1666 #272198 #342CCA #5F59DB

Accessibility & contrast

On white

11.95
#272198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272198
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272198#FFFFFF#000000##FFFFFF
##2721981.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272198;
/* rgb */ color: rgb(39, 33, 152);
/* oklch */ color: oklch(35.4% 0.183 274.0);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#272198',
    950: '#000000',
  },
}
SCSS
$custom: #272198;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#272198",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 243.025,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35405,
    "c": 0.1829,
    "h": 274
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#272198
secondary
#BABF56
accent
#E740DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272198

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

Preview Lab → · Contrast checker → · Palette generator →

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