#2740B1#2740B1

#2740B1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.181 H 267.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2740B1
RGBrgb(39, 64, 177)
HSLhsl(229, 64%, 42%)
HSVhsv(229, 78%, 69%)
CMYKcmyk(78%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.42, 32.00, -62.61)
CIE-LCHlch(32.42, 70.31, 297.08°)
OKLaboklab(42.99% -0.0066 -0.1811)
OKLCHoklch(42.99% 0.181 267.9)
XYZxyz(10.6032, 7.2713, 42.4311)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740B1 #B19827
analogous
#2785B1 #2740B1 #5327B1
triadic
#2740B1 #B12740 #40B127
tetradic
#2740B1 #B12785 #B19827 #27B153
square
#2740B1 #B12785 #B19827 #27B153
split-complementary
#2740B1 #B15327 #85B127
monochromatic
#111C4D #1C2E7F #2740B1 #405BD5 #7286E0

Accessibility & contrast

On white

8.56
#2740B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2740B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2740B1#FFFFFF#000000##FFFFFF
##2740B11.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2740b1;
/* rgb */ color: rgb(39, 64, 177);
/* oklch */ color: oklch(43.0% 0.181 267.9);
Tailwind
colors: {
  custom: {
    50: '#7874c9',
    500: '#2740b1',
    950: '#000000',
  },
}
SCSS
$custom: #2740b1;
$custom-light: #7874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2740b1",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 229.13,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42985,
    "c": 0.18123,
    "h": 267.9
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#2740B1
secondary
#C7B76D
accent
#C941E7
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2740B1

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

Preview Lab → · Contrast checker → · Palette generator →

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