#273178#273178

#273178 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.121 H 272.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#273178
RGBrgb(39, 49, 120)
HSLhsl(233, 51%, 31%)
HSVhsv(233, 68%, 47%)
CMYKcmyk(67.5%, 59.2%, 0%, 52.9%)
CIE-LABlab(23.62, 20.55, -41.97)
CIE-LCHlch(23.62, 46.73, 296.08°)
OKLaboklab(34.95% 0.0052 -0.1207)
OKLCHoklch(34.95% 0.121 272.5)
XYZxyz(5.3240, 3.9836, 18.2540)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273178 #786E27
analogous
#275978 #273178 #452778
triadic
#273178 #782731 #317827
tetradic
#273178 #782759 #786E27 #277845
square
#273178 #782759 #786E27 #277845
split-complementary
#273178 #784527 #597827
monochromatic
#090B1C #181E4A #273178 #3644A6 #5261C7

Accessibility & contrast

On white

11.69
#273178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#273178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273178
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273178#FFFFFF#000000##FFFFFF
##2731781.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #273178;
/* rgb */ color: rgb(39, 49, 120);
/* oklch */ color: oklch(35.0% 0.121 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b68a0',
    500: '#273178',
    950: '#000000',
  },
}
SCSS
$custom: #273178;
$custom-light: #6b68a0;
$custom-dark: #000000;
JSON
{
  "hex": "#273178",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 232.593,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34952,
    "c": 0.12084,
    "h": 272.5
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#273178
secondary
#AA9F51
accent
#C94DDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #273178

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

Preview Lab → · Contrast checker → · Palette generator →

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