#272F79#272F79

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

Color values

HEX#272F79
RGBrgb(39, 47, 121)
HSLhsl(234, 51%, 31%)
HSVhsv(234, 68%, 47%)
CMYKcmyk(67.8%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.15, 22.31, -43.37)
CIE-LCHlch(23.15, 48.77, 297.22°)
OKLaboklab(34.63% 0.0071 -0.1248)
OKLCHoklch(34.63% 0.125 273.3)
XYZxyz(5.3033, 3.8444, 18.5480)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F79 #797127
analogous
#275879 #272F79 #482779
triadic
#272F79 #79272F #2F7927
tetradic
#272F79 #792758 #797127 #277948
square
#272F79 #792758 #797127 #277948
split-complementary
#272F79 #794827 #587927
monochromatic
#090B1C #181D4B #272F79 #3641A7 #535EC8

Accessibility & contrast

On white

11.87
#272F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#272F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F79
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F79#FFFFFF#000000##FFFFFF
##272F791.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272f79;
/* rgb */ color: rgb(39, 47, 121);
/* oklch */ color: oklch(34.6% 0.125 273.3);
Tailwind
colors: {
  custom: {
    50: '#6c67a0',
    500: '#272f79',
    950: '#000000',
  },
}
SCSS
$custom: #272f79;
$custom-light: #6c67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#272f79",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 234.146,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34631,
    "c": 0.12505,
    "h": 273.3
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#272F79
secondary
#ABA251
accent
#CD4DDB
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #272F79

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

Preview Lab → · Contrast checker → · Palette generator →

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