#2740A5#2740A5

#2740A5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.165 H 267.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2740A5
RGBrgb(39, 64, 165)
HSLhsl(228, 62%, 40%)
HSVhsv(228, 76%, 65%)
CMYKcmyk(76.4%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.38, 27.49, -57.13)
CIE-LCHlch(31.38, 63.40, 295.70°)
OKLaboklab(41.9% -0.0064 -0.165)
OKLCHoklch(41.9% 0.165 267.8)
XYZxyz(9.4593, 6.8137, 36.4067)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A5 #A58C27
analogous
#277FA5 #2740A5 #4D27A5
triadic
#2740A5 #A52740 #40A527
tetradic
#2740A5 #A5277F #A58C27 #27A54D
square
#2740A5 #A5277F #A58C27 #27A54D
split-complementary
#2740A5 #A54D27 #7FA527
monochromatic
#101A42 #1B2D74 #2740A5 #3957D0 #6A81DC

Accessibility & contrast

On white

8.89
#2740A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2740A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740A5
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A5#FFFFFF#000000##FFFFFF
##2740A51.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2740a5;
/* rgb */ color: rgb(39, 64, 165);
/* oklch */ color: oklch(41.9% 0.165 267.8);
Tailwind
colors: {
  custom: {
    50: '#7574c1',
    500: '#2740a5',
    950: '#000000',
  },
}
SCSS
$custom: #2740a5;
$custom-light: #7574c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a5",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 228.095,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.41896,
    "c": 0.16518,
    "h": 267.8
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2740A5

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

Preview Lab → · Contrast checker → · Palette generator →

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