#2742AD#2742AD

#2742AD is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.174 H 267.4°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2742AD
RGBrgb(39, 66, 173)
HSLhsl(228, 63%, 42%)
HSVhsv(228, 77%, 68%)
CMYKcmyk(77.5%, 61.8%, 0%, 32.2%)
CIE-LABlab(32.58, 29.19, -59.96)
CIE-LCHlch(32.58, 66.69, 295.96°)
OKLaboklab(43% -0.0078 -0.1733)
OKLCHoklch(43% 0.174 267.4)
XYZxyz(10.3251, 7.3437, 40.4004)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742AD #AD9227
analogous
#2785AD #2742AD #4F27AD
triadic
#2742AD #AD2742 #42AD27
tetradic
#2742AD #AD2785 #AD9227 #27AD4F
square
#2742AD #AD2785 #AD9227 #27AD4F
split-complementary
#2742AD #AD4F27 #85AD27
monochromatic
#101C49 #1C2F7B #2742AD #3E5CD3 #7086DF

Accessibility & contrast

On white

8.51
#2742AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2742AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2742AD#FFFFFF#000000##FFFFFF
##2742AD1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2742ad;
/* rgb */ color: rgb(39, 66, 173);
/* oklch */ color: oklch(43.0% 0.174 267.4);
Tailwind
colors: {
  custom: {
    50: '#7776c6',
    500: '#2742ad',
    950: '#000000',
  },
}
SCSS
$custom: #2742ad;
$custom-light: #7776c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2742ad",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 227.91,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.17351,
    "h": 267.4
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#2742AD
secondary
#C6B36A
accent
#C542E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2742AD

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

Preview Lab → · Contrast checker → · Palette generator →

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