#2740AA#2740AA

#2740AA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.172 H 267.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#2740AA
RGBrgb(39, 64, 170)
HSLhsl(229, 63%, 41%)
HSVhsv(229, 77%, 67%)
CMYKcmyk(77.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.81, 29.38, -59.43)
CIE-LCHlch(31.81, 66.30, 296.31°)
OKLaboklab(42.35% -0.0064 -0.1718)
OKLCHoklch(42.35% 0.172 267.9)
XYZxyz(9.9233, 6.9993, 38.8504)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740AA #AA9127
analogous
#2781AA #2740AA #5027AA
triadic
#2740AA #AA2740 #40AA27
tetradic
#2740AA #AA2781 #AA9127 #27AA50
square
#2740AA #AA2781 #AA9127 #27AA50
split-complementary
#2740AA #AA5027 #81AA27
monochromatic
#101B46 #1C2D78 #2740AA #3C59D2 #6E83DE

Accessibility & contrast

On white

8.75
#2740AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2740AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2740AA#FFFFFF#000000##FFFFFF
##2740AA1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2740aa;
/* rgb */ color: rgb(39, 64, 170);
/* oklch */ color: oklch(42.3% 0.172 267.9);
Tailwind
colors: {
  custom: {
    50: '#7674c4',
    500: '#2740aa',
    950: '#000000',
  },
}
SCSS
$custom: #2740aa;
$custom-light: #7674c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2740aa",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 228.55,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42345,
    "c": 0.17193,
    "h": 267.9
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#2740AA
secondary
#C4B369
accent
#C742E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2740AA

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

Preview Lab → · Contrast checker → · Palette generator →

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