#2742AE#2742AE

#2742AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.175 H 267.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2742AE
RGBrgb(39, 66, 174)
HSLhsl(228, 63%, 42%)
HSVhsv(228, 78%, 68%)
CMYKcmyk(77.6%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.66, 29.57, -60.42)
CIE-LCHlch(32.66, 67.27, 296.08°)
OKLaboklab(43.09% -0.0078 -0.1747)
OKLCHoklch(43.09% 0.175 267.5)
XYZxyz(10.4222, 7.3826, 40.9119)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742AE #AE9327
analogous
#2786AE #2742AE #5027AE
triadic
#2742AE #AE2742 #42AE27
tetradic
#2742AE #AE2786 #AE9327 #27AE50
square
#2742AE #AE2786 #AE9327 #27AE50
split-complementary
#2742AE #AE5027 #86AE27
monochromatic
#111C4A #1C2F7C #2742AE #3E5CD4 #7087DF

Accessibility & contrast

On white

8.48
#2742AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2742AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2742AE#FFFFFF#000000##FFFFFF
##2742AE1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2742ae;
/* rgb */ color: rgb(39, 66, 174);
/* oklch */ color: oklch(43.1% 0.175 267.5);
Tailwind
colors: {
  custom: {
    50: '#7776c7',
    500: '#2742ae',
    950: '#000000',
  },
}
SCSS
$custom: #2742ae;
$custom-light: #7776c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2742ae",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 228,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43086,
    "c": 0.17485,
    "h": 267.5
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#2742AE
secondary
#C6B46B
accent
#C541E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2742AE

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

Preview Lab → · Contrast checker → · Palette generator →

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