#272E77#272E77

#272E77 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.123 H 273.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#272E77
RGBrgb(39, 46, 119)
HSLhsl(235, 51%, 31%)
HSVhsv(235, 67%, 47%)
CMYKcmyk(67.2%, 61.3%, 0%, 53.3%)
CIE-LABlab(22.71, 22.25, -42.81)
CIE-LCHlch(22.71, 48.24, 297.46°)
OKLaboklab(34.25% 0.0081 -0.1232)
OKLCHoklch(34.25% 0.123 273.8)
XYZxyz(5.1424, 3.7168, 17.8956)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272E77 #777027
analogous
#275677 #272E77 #482777
triadic
#272E77 #77272E #2E7727
tetradic
#272E77 #772756 #777027 #277748
square
#272E77 #772756 #777027 #277748
split-complementary
#272E77 #774827 #567727
monochromatic
#090A1B #181C49 #272E77 #3640A5 #525CC6

Accessibility & contrast

On white

12.05
#272E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#272E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272E77
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272E77#FFFFFF#000000##FFFFFF
##272E771.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272e77;
/* rgb */ color: rgb(39, 46, 119);
/* oklch */ color: oklch(34.3% 0.123 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b669f',
    500: '#272e77',
    950: '#000000',
  },
}
SCSS
$custom: #272e77;
$custom-light: #6b669f;
$custom-dark: #000000;
JSON
{
  "hex": "#272e77",
  "rgb": {
    "r": 39,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 234.75,
    "s": 50.633,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.12348,
    "h": 273.8
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#272E77
secondary
#A9A151
accent
#CE4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #272E77

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

Preview Lab → · Contrast checker → · Palette generator →

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