#2740A1#2740A1

#2740A1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.160 H 267.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2740A1
RGBrgb(39, 64, 161)
HSLhsl(228, 61%, 39%)
HSVhsv(228, 76%, 63%)
CMYKcmyk(75.8%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.04, 25.97, -55.26)
CIE-LCHlch(31.04, 61.06, 295.17°)
OKLaboklab(41.54% -0.0065 -0.1596)
OKLCHoklch(41.54% 0.16 267.7)
XYZxyz(9.1009, 6.6703, 34.5192)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A1 #A18827
analogous
#277DA1 #2740A1 #4B27A1
triadic
#2740A1 #A12740 #40A127
tetradic
#2740A1 #A1277D #A18827 #27A14B
square
#2740A1 #A1277D #A18827 #27A14B
split-complementary
#2740A1 #A14B27 #7DA127
monochromatic
#0F193E #1B2C70 #2740A1 #3756CE #687FDA

Accessibility & contrast

On white

9.00
#2740A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2740A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740A1
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A1#FFFFFF#000000##FFFFFF
##2740A11.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2740a1;
/* rgb */ color: rgb(39, 64, 161);
/* oklch */ color: oklch(41.5% 0.160 267.7);
Tailwind
colors: {
  custom: {
    50: '#7474be',
    500: '#2740a1',
    950: '#000000',
  },
}
SCSS
$custom: #2740a1;
$custom-light: #7474be;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a1",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 227.705,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41543,
    "c": 0.15971,
    "h": 267.7
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#2740A1
secondary
#C0AD63
accent
#C344E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2740A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2740A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva