#273371#273371

#273371 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.107 H 271.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#273371
RGBrgb(39, 51, 113)
HSLhsl(230, 49%, 30%)
HSVhsv(230, 65%, 44%)
CMYKcmyk(65.5%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.64, 16.48, -37.47)
CIE-LCHlch(23.64, 40.94, 293.74°)
OKLaboklab(34.8% 0.0028 -0.1074)
OKLCHoklch(34.8% 0.107 271.5)
XYZxyz(5.0002, 3.9908, 16.1264)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273371 #716527
analogous
#275871 #273371 #402771
triadic
#273371 #712733 #337127
tetradic
#273371 #712758 #716527 #277140
square
#273371 #712758 #716527 #277140
split-complementary
#273371 #714027 #587127
monochromatic
#080A17 #171E44 #273371 #37489E #5062C3

Accessibility & contrast

On white

11.68
#273371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #273371
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273371#FFFFFF#000000##FFFFFF
##2733711.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #273371;
/* rgb */ color: rgb(39, 51, 113);
/* oklch */ color: oklch(34.8% 0.107 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a6a9a',
    500: '#273371',
    950: '#000000',
  },
}
SCSS
$custom: #273371;
$custom-light: #6a6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#273371",
  "rgb": {
    "r": 39,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 230.27,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34798,
    "c": 0.10749,
    "h": 271.5
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#273371
secondary
#A39650
accent
#C250D8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #273371

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

Preview Lab → · Contrast checker → · Palette generator →

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