#2740A3#2740A3

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

Color values

HEX#2740A3
RGBrgb(39, 64, 163)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 76%, 64%)
CMYKcmyk(76.1%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.21, 26.73, -56.20)
CIE-LCHlch(31.21, 62.23, 295.44°)
OKLaboklab(41.72% -0.0064 -0.1623)
OKLCHoklch(41.72% 0.162 267.7)
XYZxyz(9.2787, 6.7415, 35.4555)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A3 #A38A27
analogous
#277EA3 #2740A3 #4C27A3
triadic
#2740A3 #A32740 #40A327
tetradic
#2740A3 #A3277E #A38A27 #27A34C
square
#2740A3 #A3277E #A38A27 #27A34C
split-complementary
#2740A3 #A34C27 #7EA327
monochromatic
#0F1940 #1B2D72 #2740A3 #3856CF #6980DB

Accessibility & contrast

On white

8.94
#2740A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2740A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740A3
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A3#FFFFFF#000000##FFFFFF
##2740A31.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2740a3;
/* rgb */ color: rgb(39, 64, 163);
/* oklch */ color: oklch(41.7% 0.162 267.7);
Tailwind
colors: {
  custom: {
    50: '#7474bf',
    500: '#2740a3',
    950: '#000000',
  },
}
SCSS
$custom: #2740a3;
$custom-light: #7474bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a3",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 227.903,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41719,
    "c": 0.16245,
    "h": 267.7
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#2740A3
secondary
#C1AF64
accent
#C443E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2740A3

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

Preview Lab → · Contrast checker → · Palette generator →

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