#272D77#272D77

#272D77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.125 H 274.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#272D77
RGBrgb(39, 45, 119)
HSLhsl(236, 51%, 31%)
HSVhsv(236, 67%, 47%)
CMYKcmyk(67.2%, 62.2%, 0%, 53.3%)
CIE-LABlab(22.44, 22.94, -43.25)
CIE-LCHlch(22.44, 48.95, 297.94°)
OKLaboklab(34.05% 0.009 -0.1245)
OKLCHoklch(34.05% 0.125 274.1)
XYZxyz(5.1038, 3.6396, 17.8827)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D77 #777127
analogous
#275577 #272D77 #492777
triadic
#272D77 #77272D #2D7727
tetradic
#272D77 #772755 #777127 #277749
square
#272D77 #772755 #777127 #277749
split-complementary
#272D77 #774927 #557727
monochromatic
#090A1B #181C49 #272D77 #363EA5 #525BC6

Accessibility & contrast

On white

12.15
#272D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#272D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##272D77#FFFFFF#000000##FFFFFF
##272D771.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)
#003979
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272d77;
/* rgb */ color: rgb(39, 45, 119);
/* oklch */ color: oklch(34.1% 0.125 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b669f',
    500: '#272d77',
    950: '#000000',
  },
}
SCSS
$custom: #272d77;
$custom-light: #6b669f;
$custom-dark: #000000;
JSON
{
  "hex": "#272d77",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 235.5,
    "s": 50.633,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.12484,
    "h": 274.1
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#272D77
secondary
#A9A351
accent
#D04EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #272D77

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

Preview Lab → · Contrast checker → · Palette generator →

#272D77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva