#273161#273161

#273161 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.1% C 0.085 H 272.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#273161
RGBrgb(39, 49, 97)
HSLhsl(230, 43%, 27%)
HSVhsv(230, 60%, 38%)
CMYKcmyk(59.8%, 49.5%, 0%, 62%)
CIE-LABlab(21.91, 11.83, -29.90)
CIE-LCHlch(21.91, 32.15, 291.59°)
OKLaboklab(33.12% 0.0032 -0.0852)
OKLCHoklch(33.12% 0.085 272.1)
XYZxyz(4.0920, 3.4907, 11.7651)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273161 #615727
analogous
#274E61 #273161 #3A2761
triadic
#273161 #612731 #316127
tetradic
#273161 #61274E #615727 #27613A
square
#273161 #61274E #615727 #27613A
split-complementary
#273161 #613A27 #4E6127
monochromatic
#090B16 #151B35 #273161 #39478D #4C5EB7

Accessibility & contrast

On white

12.37
#273161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#273161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273161
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273161#FFFFFF#000000##FFFFFF
##2731611.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3763
Deuteranopia (green-blind)
#133260
Tritanopia (blue-blind)
#063C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #273161;
/* rgb */ color: rgb(39, 49, 97);
/* oklch */ color: oklch(33.1% 0.085 272.1);
Tailwind
colors: {
  custom: {
    50: '#67688e',
    500: '#273161',
    950: '#000000',
  },
}
SCSS
$custom: #273161;
$custom-light: #67688e;
$custom-dark: #000000;
JSON
{
  "hex": "#273161",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 229.655,
    "s": 42.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33122,
    "c": 0.08526,
    "h": 272.1
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#273161
secondary
#948850
accent
#BD55D2
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #273161

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

Preview Lab → · Contrast checker → · Palette generator →

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