#2742A4#2742A4

#2742A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.161 H 267.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2742A4
RGBrgb(39, 66, 164)
HSLhsl(227, 62%, 40%)
HSVhsv(227, 76%, 64%)
CMYKcmyk(76.2%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.82, 25.77, -55.80)
CIE-LCHlch(31.82, 61.47, 294.79°)
OKLaboklab(42.2% -0.0078 -0.1611)
OKLCHoklch(42.2% 0.161 267.2)
XYZxyz(9.4834, 7.0071, 35.9675)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742A4 #A48927
analogous
#2781A4 #2742A4 #4B27A4
triadic
#2742A4 #A42742 #42A427
tetradic
#2742A4 #A42781 #A48927 #27A44B
square
#2742A4 #A42781 #A48927 #27A44B
split-complementary
#2742A4 #A44B27 #81A427
monochromatic
#0F1A41 #1B2E73 #2742A4 #3859D0 #6A82DC

Accessibility & contrast

On white

8.74
#2742A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2742A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2742A4#FFFFFF#000000##FFFFFF
##2742A41.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2742a4;
/* rgb */ color: rgb(39, 66, 164);
/* oklch */ color: oklch(42.2% 0.161 267.2);
Tailwind
colors: {
  custom: {
    50: '#7476c0',
    500: '#2742a4',
    950: '#000000',
  },
}
SCSS
$custom: #2742a4;
$custom-light: #7476c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2742a4",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 227.04,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42201,
    "c": 0.16132,
    "h": 267.2
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#2742A4
secondary
#C2AE65
accent
#C243E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2742A4

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

Preview Lab → · Contrast checker → · Palette generator →

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