#273F98#273F98

#273F98 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.148 H 267.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#273F98
RGBrgb(39, 63, 152)
HSLhsl(227, 59%, 37%)
HSVhsv(227, 74%, 60%)
CMYKcmyk(74.3%, 58.6%, 0%, 40.4%)
CIE-LABlab(30.04, 23.20, -51.44)
CIE-LCHlch(30.04, 56.43, 294.27°)
OKLaboklab(40.56% -0.0059 -0.1484)
OKLCHoklch(40.56% 0.148 267.7)
XYZxyz(8.2797, 6.2525, 30.4702)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273F98 #988027
analogous
#277798 #273F98 #482798
triadic
#273F98 #98273F #3F9827
tetradic
#273F98 #982777 #988027 #279848
square
#273F98 #982777 #988027 #279848
split-complementary
#273F98 #984827 #779827
monochromatic
#0E1737 #1B2B67 #273F98 #3353C9 #637BD7

Accessibility & contrast

On white

9.33
#273F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#273F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273F98
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273F98#FFFFFF#000000##FFFFFF
##273F981.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #273f98;
/* rgb */ color: rgb(39, 63, 152);
/* oklch */ color: oklch(40.6% 0.148 267.7);
Tailwind
colors: {
  custom: {
    50: '#7273b7',
    500: '#273f98',
    950: '#000000',
  },
}
SCSS
$custom: #273f98;
$custom-light: #7273b7;
$custom-dark: #000000;
JSON
{
  "hex": "#273f98",
  "rgb": {
    "r": 39,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 227.257,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40564,
    "c": 0.14848,
    "h": 267.7
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #273F98

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

Preview Lab → · Contrast checker → · Palette generator →

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