#2742AB#2742AB

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

Color values

HEX#2742AB
RGBrgb(39, 66, 171)
HSLhsl(228, 63%, 41%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(77.2%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.41, 28.43, -59.05)
CIE-LCHlch(32.41, 65.54, 295.71°)
OKLaboklab(42.82% -0.0078 -0.1706)
OKLCHoklch(42.82% 0.171 267.4)
XYZxyz(10.1330, 7.2669, 39.3888)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742AB #AB9027
analogous
#2784AB #2742AB #4E27AB
triadic
#2742AB #AB2742 #42AB27
tetradic
#2742AB #AB2784 #AB9027 #27AB4E
square
#2742AB #AB2784 #AB9027 #27AB4E
split-complementary
#2742AB #AB4E27 #84AB27
monochromatic
#101C47 #1C2F79 #2742AB #3D5BD3 #6E85DE

Accessibility & contrast

On white

8.56
#2742AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2742AB#FFFFFF#000000##FFFFFF
##2742AB1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2742ab;
/* rgb */ color: rgb(39, 66, 171);
/* oklch */ color: oklch(42.8% 0.171 267.4);
Tailwind
colors: {
  custom: {
    50: '#7676c5',
    500: '#2742ab',
    950: '#000000',
  },
}
SCSS
$custom: #2742ab;
$custom-light: #7676c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2742ab",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 227.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42817,
    "c": 0.17083,
    "h": 267.4
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2742AB

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

Preview Lab → · Contrast checker → · Palette generator →

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