#272F77#272F77

#272F77 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.122 H 273.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#272F77
RGBrgb(39, 47, 119)
HSLhsl(234, 51%, 31%)
HSVhsv(234, 67%, 47%)
CMYKcmyk(67.2%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.98, 21.56, -42.37)
CIE-LCHlch(22.98, 47.53, 296.97°)
OKLaboklab(34.46% 0.0071 -0.1219)
OKLCHoklch(34.46% 0.122 273.3)
XYZxyz(5.1819, 3.7958, 17.9088)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F77 #776F27
analogous
#275777 #272F77 #472777
triadic
#272F77 #77272F #2F7727
tetradic
#272F77 #772757 #776F27 #277747
square
#272F77 #772757 #776F27 #277747
split-complementary
#272F77 #774727 #577727
monochromatic
#090B1B #181D49 #272F77 #3641A5 #525EC6

Accessibility & contrast

On white

11.94
#272F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F77
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F77#FFFFFF#000000##FFFFFF
##272F771.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272f77;
/* rgb */ color: rgb(39, 47, 119);
/* oklch */ color: oklch(34.5% 0.122 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b679f',
    500: '#272f77',
    950: '#000000',
  },
}
SCSS
$custom: #272f77;
$custom-light: #6b679f;
$custom-dark: #000000;
JSON
{
  "hex": "#272f77",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 234,
    "s": 50.633,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.12211,
    "h": 273.3
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#272F77
secondary
#A9A051
accent
#CC4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #272F77

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

Preview Lab → · Contrast checker → · Palette generator →

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