#272F7D#272F7D

#272F7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.131 H 273.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#272F7D
RGBrgb(39, 47, 125)
HSLhsl(234, 52%, 32%)
HSVhsv(234, 69%, 49%)
CMYKcmyk(68.8%, 62.4%, 0%, 51%)
CIE-LABlab(23.49, 23.82, -45.36)
CIE-LCHlch(23.49, 51.23, 297.71°)
OKLaboklab(34.99% 0.0071 -0.1307)
OKLCHoklch(34.99% 0.131 273.1)
XYZxyz(5.5537, 3.9445, 19.8668)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F7D #7D7527
analogous
#275A7D #272F7D #4A277D
triadic
#272F7D #7D272F #2F7D27
tetradic
#272F7D #7D275A #7D7527 #277D4A
square
#272F7D #7D275A #7D7527 #277D4A
split-complementary
#272F7D #7D4A27 #5A7D27
monochromatic
#0A0C20 #181D4E #272F7D #3641AC #555FCA

Accessibility & contrast

On white

11.74
#272F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#272F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F7D
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F7D#FFFFFF#000000##FFFFFF
##272F7D1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272f7d;
/* rgb */ color: rgb(39, 47, 125);
/* oklch */ color: oklch(35.0% 0.131 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d67a3',
    500: '#272f7d',
    950: '#000000',
  },
}
SCSS
$custom: #272f7d;
$custom-light: #6d67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#272f7d",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 234.419,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34986,
    "c": 0.13088,
    "h": 273.1
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#272F7D
secondary
#AFA651
accent
#CE4CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #272F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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