#273791#273791

#273791 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.149 H 270.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#273791
RGBrgb(39, 55, 145)
HSLhsl(231, 58%, 36%)
HSVhsv(231, 73%, 57%)
CMYKcmyk(73.1%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.32, 25.94, -51.59)
CIE-LCHlch(27.32, 57.74, 296.69°)
OKLaboklab(38.35% 0.0002 -0.1489)
OKLCHoklch(38.35% 0.149 270.1)
XYZxyz(7.3120, 5.2073, 27.4023)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273791 #918127
analogous
#276C91 #273791 #4C2791
triadic
#273791 #912737 #379127
tetradic
#273791 #91276C #918127 #27914C
square
#273791 #91276C #918127 #27914C
split-complementary
#273791 #914C27 #6C9127
monochromatic
#0D1231 #1A2561 #273791 #3449C1 #5F70D4

Accessibility & contrast

On white

10.29
#273791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#273791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273791
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273791#FFFFFF#000000##FFFFFF
##2737911.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #273791;
/* rgb */ color: rgb(39, 55, 145);
/* oklch */ color: oklch(38.4% 0.149 270.1);
Tailwind
colors: {
  custom: {
    50: '#716db2',
    500: '#273791',
    950: '#000000',
  },
}
SCSS
$custom: #273791;
$custom-light: #716db2;
$custom-dark: #000000;
JSON
{
  "hex": "#273791",
  "rgb": {
    "r": 39,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 230.943,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38354,
    "c": 0.1489,
    "h": 270.1
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#273791
secondary
#B9AB5B
accent
#CA47E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #273791

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

Preview Lab → · Contrast checker → · Palette generator →

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