#273F97#273F97

#273F97 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.147 H 267.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#273F97
RGBrgb(39, 63, 151)
HSLhsl(227, 59%, 37%)
HSVhsv(227, 74%, 59%)
CMYKcmyk(74.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.96, 22.81, -50.96)
CIE-LCHlch(29.96, 55.83, 294.12°)
OKLaboklab(40.48% -0.006 -0.1469)
OKLCHoklch(40.48% 0.147 267.7)
XYZxyz(8.1982, 6.2199, 30.0406)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273F97 #977F27
analogous
#277797 #273F97 #472797
triadic
#273F97 #97273F #3F9727
tetradic
#273F97 #972777 #977F27 #279747
square
#273F97 #972777 #977F27 #279747
split-complementary
#273F97 #974727 #779727
monochromatic
#0E1636 #1A2B66 #273F97 #3453C8 #627BD6

Accessibility & contrast

On white

9.36
#273F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#273F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273F97
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273F97#FFFFFF#000000##FFFFFF
##273F971.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #273f97;
/* rgb */ color: rgb(39, 63, 151);
/* oklch */ color: oklch(40.5% 0.147 267.7);
Tailwind
colors: {
  custom: {
    50: '#7173b6',
    500: '#273f97',
    950: '#000000',
  },
}
SCSS
$custom: #273f97;
$custom-light: #7173b6;
$custom-dark: #000000;
JSON
{
  "hex": "#273f97",
  "rgb": {
    "r": 39,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 227.143,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.14707,
    "h": 267.7
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#273F97
secondary
#BCA85E
accent
#C146E2
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #273F97

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

Preview Lab → · Contrast checker → · Palette generator →

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