#272178#272178

#272178 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.142 H 277.8°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#272178
RGBrgb(39, 33, 120)
HSLhsl(244, 57%, 30%)
HSVhsv(244, 73%, 47%)
CMYKcmyk(67.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.53, 31.26, -48.64)
CIE-LCHlch(19.53, 57.82, 302.73°)
OKLaboklab(31.96% 0.0192 -0.1404)
OKLCHoklch(31.96% 0.142 277.8)
XYZxyz(4.7696, 2.8747, 18.0692)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272178 #727821
analogous
#214678 #272178 #532178
triadic
#272178 #782721 #217827
tetradic
#272178 #782146 #727821 #217853
square
#272178 #782146 #727821 #217853
split-complementary
#272178 #785321 #467821
monochromatic
#080718 #171448 #272178 #372EA8 #5047CC

Accessibility & contrast

On white

13.33
#272178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#272178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272178
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272178#FFFFFF#000000##FFFFFF
##2721781.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #272178;
/* rgb */ color: rgb(39, 33, 120);
/* oklch */ color: oklch(32.0% 0.142 277.8);
Tailwind
colors: {
  custom: {
    50: '#6d5da0',
    500: '#272178',
    950: '#000000',
  },
}
SCSS
$custom: #272178;
$custom-light: #6d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#272178",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 244.138,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31962,
    "c": 0.14169,
    "h": 277.8
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#272178
secondary
#A4AB4A
accent
#E048D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #272178

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

Preview Lab → · Contrast checker → · Palette generator →

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