#2740A7#2740A7

#2740A7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.168 H 267.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2740A7
RGBrgb(39, 64, 167)
HSLhsl(228, 62%, 40%)
HSVhsv(228, 77%, 65%)
CMYKcmyk(76.6%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.55, 28.25, -58.05)
CIE-LCHlch(31.55, 64.56, 295.95°)
OKLaboklab(42.08% -0.0064 -0.1678)
OKLCHoklch(42.08% 0.168 267.8)
XYZxyz(9.6427, 6.8871, 37.3729)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A7 #A78E27
analogous
#2780A7 #2740A7 #4E27A7
triadic
#2740A7 #A72740 #40A727
tetradic
#2740A7 #A72780 #A78E27 #27A74E
square
#2740A7 #A72780 #A78E27 #27A74E
split-complementary
#2740A7 #A74E27 #80A727
monochromatic
#101A44 #1B2D75 #2740A7 #3A58D1 #6C82DD

Accessibility & contrast

On white

8.83
#2740A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2740A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740A7
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A7#FFFFFF#000000##FFFFFF
##2740A71.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2740a7;
/* rgb */ color: rgb(39, 64, 167);
/* oklch */ color: oklch(42.1% 0.168 267.8);
Tailwind
colors: {
  custom: {
    50: '#7574c2',
    500: '#2740a7',
    950: '#000000',
  },
}
SCSS
$custom: #2740a7;
$custom-light: #7574c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a7",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 228.281,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42075,
    "c": 0.16788,
    "h": 267.8
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#2740A7
secondary
#C3B167
accent
#C543E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2740A7

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

Preview Lab → · Contrast checker → · Palette generator →

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