#272F7C#272F7C

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

Color values

HEX#272F7C
RGBrgb(39, 47, 124)
HSLhsl(234, 52%, 32%)
HSVhsv(234, 69%, 49%)
CMYKcmyk(68.5%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.40, 23.44, -44.86)
CIE-LCHlch(23.40, 50.62, 297.59°)
OKLaboklab(34.9% 0.0071 -0.1292)
OKLCHoklch(34.9% 0.129 273.1)
XYZxyz(5.4901, 3.9191, 19.5320)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F7C #7C7427
analogous
#275A7C #272F7C #4A277C
triadic
#272F7C #7C272F #2F7C27
tetradic
#272F7C #7C275A #7C7427 #277C4A
square
#272F7C #7C275A #7C7427 #277C4A
split-complementary
#272F7C #7C4A27 #5A7C27
monochromatic
#0A0C1F #181D4D #272F7C #3641AB #545FC9

Accessibility & contrast

On white

11.77
#272F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#272F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F7C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F7C#FFFFFF#000000##FFFFFF
##272F7C1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272f7c;
/* rgb */ color: rgb(39, 47, 124);
/* oklch */ color: oklch(34.9% 0.129 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c67a3',
    500: '#272f7c',
    950: '#000000',
  },
}
SCSS
$custom: #272f7c;
$custom-light: #6c67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#272f7c",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 234.353,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34896,
    "c": 0.12943,
    "h": 273.1
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #272F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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