#272798#272798

#272798 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.177 H 273.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#272798
RGBrgb(39, 39, 152)
HSLhsl(240, 59%, 37%)
HSVhsv(240, 74%, 60%)
CMYKcmyk(74.3%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.16, 38.74, -61.08)
CIE-LCHlch(24.16, 72.33, 302.39°)
OKLaboklab(36.26% 0.0098 -0.1767)
OKLCHoklch(36.26% 0.177 273.2)
XYZxyz(7.2278, 4.1486, 30.1195)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272798 #989827
analogous
#276098 #272798 #602798
triadic
#272798 #982727 #279827
tetradic
#272798 #982760 #989827 #279860
square
#272798 #982760 #989827 #279860
split-complementary
#272798 #986027 #609827
monochromatic
#0E0E37 #1B1B67 #272798 #3333C9 #6363D7

Accessibility & contrast

On white

11.48
#272798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#272798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272798
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272798#FFFFFF#000000##FFFFFF
##2727981.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272798;
/* rgb */ color: rgb(39, 39, 152);
/* oklch */ color: oklch(36.3% 0.177 273.2);
Tailwind
colors: {
  custom: {
    50: '#7462b7',
    500: '#272798',
    950: '#000000',
  },
}
SCSS
$custom: #272798;
$custom-light: #7462b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272798",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3626,
    "c": 0.17698,
    "h": 273.2
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#272798
secondary
#BCBC5E
accent
#E245E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272798

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

Preview Lab → · Contrast checker → · Palette generator →

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