#273797#273797

#273797 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.157 H 270.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#273797
RGBrgb(39, 55, 151)
HSLhsl(231, 59%, 37%)
HSVhsv(231, 74%, 59%)
CMYKcmyk(74.2%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.84, 28.20, -54.42)
CIE-LCHlch(27.84, 61.29, 297.40°)
OKLaboklab(38.9% 0 -0.1572)
OKLCHoklch(38.9% 0.157 270)
XYZxyz(7.7869, 5.3973, 29.9035)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273797 #978727
analogous
#276F97 #273797 #4F2797
triadic
#273797 #972737 #379727
tetradic
#273797 #97276F #978727 #27974F
square
#273797 #97276F #978727 #27974F
split-complementary
#273797 #974F27 #6F9727
monochromatic
#0E1436 #1A2566 #273797 #3449C8 #6273D6

Accessibility & contrast

On white

10.10
#273797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#273797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273797
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273797#FFFFFF#000000##FFFFFF
##2737971.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #273797;
/* rgb */ color: rgb(39, 55, 151);
/* oklch */ color: oklch(38.9% 0.157 270.0);
Tailwind
colors: {
  custom: {
    50: '#726db6',
    500: '#273797',
    950: '#000000',
  },
}
SCSS
$custom: #273797;
$custom-light: #726db6;
$custom-dark: #000000;
JSON
{
  "hex": "#273797",
  "rgb": {
    "r": 39,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 231.429,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38901,
    "c": 0.15721,
    "h": 270
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#273797
secondary
#BCAF5E
accent
#CC46E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #273797

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

Preview Lab → · Contrast checker → · Palette generator →

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