#2740AD#2740AD

#2740AD is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.176 H 267.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2740AD
RGBrgb(39, 64, 173)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 77%, 68%)
CMYKcmyk(77.5%, 63%, 0%, 32.2%)
CIE-LABlab(32.07, 30.51, -60.80)
CIE-LCHlch(32.07, 68.02, 296.65°)
OKLaboklab(42.62% -0.0065 -0.1758)
OKLCHoklch(42.62% 0.176 267.9)
XYZxyz(10.2103, 7.1141, 40.3621)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740AD #AD9427
analogous
#2783AD #2740AD #5127AD
triadic
#2740AD #AD2740 #40AD27
tetradic
#2740AD #AD2783 #AD9427 #27AD51
square
#2740AD #AD2783 #AD9427 #27AD51
split-complementary
#2740AD #AD5127 #83AD27
monochromatic
#101B49 #1C2E7B #2740AD #3E5AD3 #7084DF

Accessibility & contrast

On white

8.67
#2740AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2740AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2740AD#FFFFFF#000000##FFFFFF
##2740AD1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2740ad;
/* rgb */ color: rgb(39, 64, 173);
/* oklch */ color: oklch(42.6% 0.176 267.9);
Tailwind
colors: {
  custom: {
    50: '#7774c6',
    500: '#2740ad',
    950: '#000000',
  },
}
SCSS
$custom: #2740ad;
$custom-light: #7774c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2740ad",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 228.806,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42617,
    "c": 0.17593,
    "h": 267.9
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#2740AD
secondary
#C6B46A
accent
#C842E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2740AD

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

Preview Lab → · Contrast checker → · Palette generator →

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