#273798#273798

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

Color values

HEX#273798
RGBrgb(39, 55, 152)
HSLhsl(232, 59%, 37%)
HSVhsv(232, 74%, 60%)
CMYKcmyk(74.3%, 63.8%, 0%, 40.4%)
CIE-LABlab(27.93, 28.58, -54.89)
CIE-LCHlch(27.93, 61.88, 297.50°)
OKLaboklab(38.99% 0 -0.1586)
OKLCHoklch(38.99% 0.159 270)
XYZxyz(7.8684, 5.4299, 30.3331)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273798 #988827
analogous
#277098 #273798 #4F2798
triadic
#273798 #982737 #379827
tetradic
#273798 #982770 #988827 #27984F
square
#273798 #982770 #988827 #27984F
split-complementary
#273798 #984F27 #709827
monochromatic
#0E1437 #1B2567 #273798 #3349C9 #6373D7

Accessibility & contrast

On white

10.07
#273798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#273798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273798
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273798#FFFFFF#000000##FFFFFF
##2737981.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #273798;
/* rgb */ color: rgb(39, 55, 152);
/* oklch */ color: oklch(39.0% 0.159 270.0);
Tailwind
colors: {
  custom: {
    50: '#726db7',
    500: '#273798',
    950: '#000000',
  },
}
SCSS
$custom: #273798;
$custom-light: #726db7;
$custom-dark: #000000;
JSON
{
  "hex": "#273798",
  "rgb": {
    "r": 39,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 231.504,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38993,
    "c": 0.15858,
    "h": 270
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #273798

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

Preview Lab → · Contrast checker → · Palette generator →

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