#273271#273271

#273271 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.109 H 272.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#273271
RGBrgb(39, 50, 113)
HSLhsl(231, 49%, 30%)
HSVhsv(231, 65%, 44%)
CMYKcmyk(65.5%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.35, 17.18, -37.94)
CIE-LCHlch(23.35, 41.65, 294.37°)
OKLaboklab(34.58% 0.0039 -0.1088)
OKLCHoklch(34.58% 0.109 272)
XYZxyz(4.9569, 3.9044, 16.1120)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273271 #716627
analogous
#275771 #273271 #412771
triadic
#273271 #712732 #327127
tetradic
#273271 #712757 #716627 #277141
square
#273271 #712757 #716627 #277141
split-complementary
#273271 #714127 #577127
monochromatic
#080A17 #171E44 #273271 #37469E #5061C3

Accessibility & contrast

On white

11.79
#273271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#273271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273271
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273271#FFFFFF#000000##FFFFFF
##2732711.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #273271;
/* rgb */ color: rgb(39, 50, 113);
/* oklch */ color: oklch(34.6% 0.109 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a699a',
    500: '#273271',
    950: '#000000',
  },
}
SCSS
$custom: #273271;
$custom-light: #6a699a;
$custom-dark: #000000;
JSON
{
  "hex": "#273271",
  "rgb": {
    "r": 39,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 231.081,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34581,
    "c": 0.1089,
    "h": 272
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#273271
secondary
#A39750
accent
#C450D8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #273271

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

Preview Lab → · Contrast checker → · Palette generator →

#273271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva