#272F7F#272F7F

#272F7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.134 H 273.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#272F7F
RGBrgb(39, 47, 127)
HSLhsl(235, 53%, 33%)
HSVhsv(235, 69%, 50%)
CMYKcmyk(69.3%, 63%, 0%, 50.2%)
CIE-LABlab(23.66, 24.57, -46.34)
CIE-LCHlch(23.66, 52.45, 297.93°)
OKLaboklab(35.17% 0.007 -0.1336)
OKLCHoklch(35.17% 0.134 273)
XYZxyz(5.6827, 3.9962, 20.5464)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F7F #7F7727
analogous
#275B7F #272F7F #4B277F
triadic
#272F7F #7F272F #2F7F27
tetradic
#272F7F #7F275B #7F7727 #277F4B
square
#272F7F #7F275B #7F7727 #277F4B
split-complementary
#272F7F #7F4B27 #5B7F27
monochromatic
#0A0C21 #191E50 #272F7F #3540AE #5560CB

Accessibility & contrast

On white

11.67
#272F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#272F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F7F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F7F#FFFFFF#000000##FFFFFF
##272F7F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272f7f;
/* rgb */ color: rgb(39, 47, 127);
/* oklch */ color: oklch(35.2% 0.134 273.0);
Tailwind
colors: {
  custom: {
    50: '#6d67a5',
    500: '#272f7f',
    950: '#000000',
  },
}
SCSS
$custom: #272f7f;
$custom-light: #6d67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#272f7f",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 234.545,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35166,
    "c": 0.13376,
    "h": 273
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#272F7F
secondary
#B0A752
accent
#CF4BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #272F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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