#273D87#273D87

#273D87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.127 H 267.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#273D87
RGBrgb(39, 61, 135)
HSLhsl(226, 55%, 34%)
HSVhsv(226, 71%, 53%)
CMYKcmyk(71.1%, 54.8%, 0%, 47.1%)
CIE-LABlab(28.16, 18.00, -44.03)
CIE-LCHlch(28.16, 47.57, 292.24°)
OKLaboklab(38.73% -0.0052 -0.1266)
OKLCHoklch(38.73% 0.127 267.6)
XYZxyz(6.8771, 5.5174, 23.6195)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273D87 #877127
analogous
#276D87 #273D87 #412787
triadic
#273D87 #87273D #3D8727
tetradic
#273D87 #87276D #877127 #278741
square
#273D87 #87276D #877127 #278741
split-complementary
#273D87 #874127 #6D8727
monochromatic
#0C1228 #192858 #273D87 #3552B6 #5974CF

Accessibility & contrast

On white

9.98
#273D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#273D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273D87
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273D87#FFFFFF#000000##FFFFFF
##273D871.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #273d87;
/* rgb */ color: rgb(39, 61, 135);
/* oklch */ color: oklch(38.7% 0.127 267.6);
Tailwind
colors: {
  custom: {
    50: '#6e72aa',
    500: '#273d87',
    950: '#000000',
  },
}
SCSS
$custom: #273d87;
$custom-light: #6e72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#273d87",
  "rgb": {
    "r": 39,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 226.25,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38733,
    "c": 0.12672,
    "h": 267.6
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#273D87
secondary
#B49E56
accent
#BC49DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #273D87

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

Preview Lab → · Contrast checker → · Palette generator →

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