#2742AA#2742AA

#2742AA is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.169 H 267.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2742AA
RGBrgb(39, 66, 170)
HSLhsl(228, 63%, 41%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(77.1%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.32, 28.06, -58.59)
CIE-LCHlch(32.32, 64.96, 295.59°)
OKLaboklab(42.73% -0.0078 -0.1693)
OKLCHoklch(42.73% 0.169 267.4)
XYZxyz(10.0381, 7.2289, 38.8887)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742AA #AA8F27
analogous
#2783AA #2742AA #4E27AA
triadic
#2742AA #AA2742 #42AA27
tetradic
#2742AA #AA2783 #AA8F27 #27AA4E
square
#2742AA #AA2783 #AA8F27 #27AA4E
split-complementary
#2742AA #AA4E27 #83AA27
monochromatic
#101B46 #1C2F78 #2742AA #3C5BD2 #6E85DE

Accessibility & contrast

On white

8.59
#2742AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2742AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2742AA
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2742AA#FFFFFF#000000##FFFFFF
##2742AA1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2742aa;
/* rgb */ color: rgb(39, 66, 170);
/* oklch */ color: oklch(42.7% 0.169 267.4);
Tailwind
colors: {
  custom: {
    50: '#7676c4',
    500: '#2742aa',
    950: '#000000',
  },
}
SCSS
$custom: #2742aa;
$custom-light: #7676c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2742aa",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 227.634,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.16948,
    "h": 267.4
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#2742AA
secondary
#C4B169
accent
#C442E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2742AA

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

Preview Lab → · Contrast checker → · Palette generator →

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