#272298#272298

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

Color values

HEX#272298
RGBrgb(39, 34, 152)
HSLhsl(243, 63%, 36%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(74.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.14, 41.61, -62.76)
CIE-LCHlch(23.14, 75.30, 303.55°)
OKLaboklab(35.54% 0.0122 -0.1815)
OKLCHoklch(35.54% 0.182 273.9)
XYZxyz(7.0743, 3.8417, 30.0684)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272298 #939822
analogous
#225898 #272298 #622298
triadic
#272298 #982722 #229827
tetradic
#272298 #982258 #939822 #229862
square
#272298 #982258 #939822 #229862
split-complementary
#272298 #986222 #589822
monochromatic
#0D0C34 #1A1766 #272298 #342DCA #605ADA

Accessibility & contrast

On white

11.88
#272298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#272298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272298
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272298#FFFFFF#000000##FFFFFF
##2722981.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272298;
/* rgb */ color: rgb(39, 34, 152);
/* oklch */ color: oklch(35.5% 0.182 273.9);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#272298',
    950: '#000000',
  },
}
SCSS
$custom: #272298;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#272298",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 242.542,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3554,
    "c": 0.18196,
    "h": 273.9
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#272298
secondary
#BABE57
accent
#E641DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272298

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

Preview Lab → · Contrast checker → · Palette generator →

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