#272885#272885

#272885 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.151 H 274.6°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#272885
RGBrgb(39, 40, 133)
HSLhsl(239, 55%, 34%)
HSVhsv(239, 71%, 52%)
CMYKcmyk(70.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.45, 31.43, -52.09)
CIE-LCHlch(22.45, 60.84, 301.10°)
OKLaboklab(34.45% 0.0121 -0.1505)
OKLCHoklch(34.45% 0.151 274.6)
XYZxyz(5.8277, 3.6418, 22.5816)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272885 #858427
analogous
#275785 #272885 #552785
triadic
#272885 #852728 #288527
tetradic
#272885 #852757 #858427 #278555
square
#272885 #852757 #858427 #278555
split-complementary
#272885 #855527 #578527
monochromatic
#0B0C26 #191A56 #272885 #3536B4 #585ACE

Accessibility & contrast

On white

12.15
#272885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#272885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272885
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272885#FFFFFF#000000##FFFFFF
##2728851.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272885;
/* rgb */ color: rgb(39, 40, 133);
/* oklch */ color: oklch(34.5% 0.151 274.6);
Tailwind
colors: {
  custom: {
    50: '#6f62a9',
    500: '#272885',
    950: '#000000',
  },
}
SCSS
$custom: #272885;
$custom-light: #6f62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#272885",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 239.362,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34453,
    "c": 0.15097,
    "h": 274.6
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#272885
secondary
#B3B255
accent
#DC4ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #272885

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

Preview Lab → · Contrast checker → · Palette generator →

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