#2740A4#2740A4

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

Color values

HEX#2740A4
RGBrgb(39, 64, 164)
HSLhsl(228, 62%, 40%)
HSVhsv(228, 76%, 64%)
CMYKcmyk(76.2%, 61%, 0%, 35.7%)
CIE-LABlab(31.29, 27.11, -56.66)
CIE-LCHlch(31.29, 62.81, 295.57°)
OKLaboklab(41.81% -0.0064 -0.1637)
OKLCHoklch(41.81% 0.164 267.8)
XYZxyz(9.3686, 6.7774, 35.9292)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A4 #A48B27
analogous
#277FA4 #2740A4 #4D27A4
triadic
#2740A4 #A42740 #40A427
tetradic
#2740A4 #A4277F #A48B27 #27A44D
square
#2740A4 #A4277F #A48B27 #27A44D
split-complementary
#2740A4 #A44D27 #7FA427
monochromatic
#0F1941 #1B2D73 #2740A4 #3857D0 #6A81DC

Accessibility & contrast

On white

8.91
#2740A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2740A4
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A4#FFFFFF#000000##FFFFFF
##2740A41.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2740a4;
/* rgb */ color: rgb(39, 64, 164);
/* oklch */ color: oklch(41.8% 0.164 267.8);
Tailwind
colors: {
  custom: {
    50: '#7574c0',
    500: '#2740a4',
    950: '#000000',
  },
}
SCSS
$custom: #2740a4;
$custom-light: #7574c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a4",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 228,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41808,
    "c": 0.16382,
    "h": 267.8
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#2740A4
secondary
#C2AF65
accent
#C443E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2740A4

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

Preview Lab → · Contrast checker → · Palette generator →

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