#2740AE#2740AE

#2740AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.177 H 267.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2740AE
RGBrgb(39, 64, 174)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 78%, 68%)
CMYKcmyk(77.6%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.15, 30.88, -61.25)
CIE-LCHlch(32.15, 68.60, 296.76°)
OKLaboklab(42.71% -0.0065 -0.1771)
OKLCHoklch(42.71% 0.177 267.9)
XYZxyz(10.3074, 7.1530, 40.8736)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740AE #AE9527
analogous
#2784AE #2740AE #5227AE
triadic
#2740AE #AE2740 #40AE27
tetradic
#2740AE #AE2784 #AE9527 #27AE52
square
#2740AE #AE2784 #AE9527 #27AE52
split-complementary
#2740AE #AE5227 #84AE27
monochromatic
#111B4A #1C2E7C #2740AE #3E5AD4 #7085DF

Accessibility & contrast

On white

8.64
#2740AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2740AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740AE
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740AE#FFFFFF#000000##FFFFFF
##2740AE1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2740ae;
/* rgb */ color: rgb(39, 64, 174);
/* oklch */ color: oklch(42.7% 0.177 267.9);
Tailwind
colors: {
  custom: {
    50: '#7774c7',
    500: '#2740ae',
    950: '#000000',
  },
}
SCSS
$custom: #2740ae;
$custom-light: #7774c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2740ae",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 228.889,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42709,
    "c": 0.17726,
    "h": 267.9
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#2740AE
secondary
#C6B56B
accent
#C841E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2740AE

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

Preview Lab → · Contrast checker → · Palette generator →

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