#2740A2#2740A2

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

Color values

HEX#2740A2
RGBrgb(39, 64, 162)
HSLhsl(228, 61%, 39%)
HSVhsv(228, 76%, 64%)
CMYKcmyk(75.9%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.13, 26.35, -55.73)
CIE-LCHlch(31.13, 61.65, 295.30°)
OKLaboklab(41.63% -0.0064 -0.1609)
OKLCHoklch(41.63% 0.161 267.7)
XYZxyz(9.1894, 6.7058, 34.9854)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740A2 #A28927
analogous
#277EA2 #2740A2 #4C27A2
triadic
#2740A2 #A22740 #40A227
tetradic
#2740A2 #A2277E #A28927 #27A24C
square
#2740A2 #A2277E #A28927 #27A24C
split-complementary
#2740A2 #A24C27 #7EA227
monochromatic
#0F193F #1B2D71 #2740A2 #3756CF #6980DB

Accessibility & contrast

On white

8.97
#2740A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2740A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740A2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740A2#FFFFFF#000000##FFFFFF
##2740A21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2740a2;
/* rgb */ color: rgb(39, 64, 162);
/* oklch */ color: oklch(41.6% 0.161 267.7);
Tailwind
colors: {
  custom: {
    50: '#7474be',
    500: '#2740a2',
    950: '#000000',
  },
}
SCSS
$custom: #2740a2;
$custom-light: #7474be;
$custom-dark: #000000;
JSON
{
  "hex": "#2740a2",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 227.805,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.16108,
    "h": 267.7
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#2740A2
secondary
#C1AE64
accent
#C443E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2740A2

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

Preview Lab → · Contrast checker → · Palette generator →

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