#272879#272879

#272879 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.134 H 275.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#272879
RGBrgb(39, 40, 121)
HSLhsl(239, 51%, 31%)
HSVhsv(239, 68%, 47%)
CMYKcmyk(67.8%, 66.9%, 0%, 52.5%)
CIE-LABlab(21.32, 27.07, -46.36)
CIE-LCHlch(21.32, 53.68, 300.28°)
OKLaboklab(33.28% 0.0134 -0.1337)
OKLCHoklch(33.28% 0.134 275.7)
XYZxyz(5.0456, 3.3290, 18.4621)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272879 #797827
analogous
#275179 #272879 #4F2779
triadic
#272879 #792728 #287927
tetradic
#272879 #792751 #797827 #27794F
square
#272879 #792751 #797827 #27794F
split-complementary
#272879 #794F27 #517927
monochromatic
#09091C #18194B #272879 #3637A7 #5354C8

Accessibility & contrast

On white

12.61
#272879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#272879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272879
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272879#FFFFFF#000000##FFFFFF
##2728791.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #272879;
/* rgb */ color: rgb(39, 40, 121);
/* oklch */ color: oklch(33.3% 0.134 275.7);
Tailwind
colors: {
  custom: {
    50: '#6c62a0',
    500: '#272879',
    950: '#000000',
  },
}
SCSS
$custom: #272879;
$custom-light: #6c62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#272879",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 239.268,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3328,
    "c": 0.13436,
    "h": 275.7
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#272879
secondary
#ABAA51
accent
#D94DDB
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #272879

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

Preview Lab → · Contrast checker → · Palette generator →

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