#273E98#273E98

#273E98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.150 H 268.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#273E98
RGBrgb(39, 62, 152)
HSLhsl(228, 59%, 37%)
HSVhsv(228, 74%, 60%)
CMYKcmyk(74.3%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.77, 23.87, -51.88)
CIE-LCHlch(29.77, 57.11, 294.71°)
OKLaboklab(40.36% -0.0052 -0.1497)
OKLCHoklch(40.36% 0.15 268)
XYZxyz(8.2249, 6.1427, 30.4519)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273E98 #988127
analogous
#277698 #273E98 #492798
triadic
#273E98 #98273E #3E9827
tetradic
#273E98 #982776 #988127 #279849
square
#273E98 #982776 #988127 #279849
split-complementary
#273E98 #984927 #769827
monochromatic
#0E1637 #1B2A67 #273E98 #3352C9 #637AD7

Accessibility & contrast

On white

9.42
#273E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#273E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273E98
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273E98#FFFFFF#000000##FFFFFF
##273E981.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #273e98;
/* rgb */ color: rgb(39, 62, 152);
/* oklch */ color: oklch(40.4% 0.150 268.0);
Tailwind
colors: {
  custom: {
    50: '#7272b7',
    500: '#273e98',
    950: '#000000',
  },
}
SCSS
$custom: #273e98;
$custom-light: #7272b7;
$custom-dark: #000000;
JSON
{
  "hex": "#273e98",
  "rgb": {
    "r": 39,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 227.788,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40361,
    "c": 0.14976,
    "h": 268
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#273E98
secondary
#BCA95E
accent
#C245E2
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #273E98

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

Preview Lab → · Contrast checker → · Palette generator →

#273E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva