#273A87#273A87

#273A87 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.131 H 268.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#273A87
RGBrgb(39, 58, 135)
HSLhsl(228, 55%, 34%)
HSVhsv(228, 71%, 53%)
CMYKcmyk(71.1%, 57%, 0%, 47.1%)
CIE-LABlab(27.31, 20.07, -45.40)
CIE-LCHlch(27.31, 49.64, 293.84°)
OKLaboklab(38.1% -0.0025 -0.1307)
OKLCHoklch(38.1% 0.131 268.9)
XYZxyz(6.7214, 5.2061, 23.5676)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273A87 #877427
analogous
#276A87 #273A87 #442787
triadic
#273A87 #87273A #3A8727
tetradic
#273A87 #87276A #877427 #278744
square
#273A87 #87276A #877427 #278744
split-complementary
#273A87 #874427 #6A8727
monochromatic
#0C1128 #192658 #273A87 #354EB6 #5971CF

Accessibility & contrast

On white

10.29
#273A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#273A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##273A87#FFFFFF#000000##FFFFFF
##273A871.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)
#00458A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #273a87;
/* rgb */ color: rgb(39, 58, 135);
/* oklch */ color: oklch(38.1% 0.131 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e6fab',
    500: '#273a87',
    950: '#000000',
  },
}
SCSS
$custom: #273a87;
$custom-light: #6e6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#273a87",
  "rgb": {
    "r": 39,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 228.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38095,
    "c": 0.13071,
    "h": 268.9
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#273A87
secondary
#B4A156
accent
#C149DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #273A87

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

Preview Lab → · Contrast checker → · Palette generator →

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