#2742A3#2742A3

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

Color values

HEX#2742A3
RGBrgb(39, 66, 163)
HSLhsl(227, 61%, 40%)
HSVhsv(227, 76%, 64%)
CMYKcmyk(76.1%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.74, 25.39, -55.33)
CIE-LCHlch(31.74, 60.88, 294.65°)
OKLaboklab(42.11% -0.0079 -0.1598)
OKLCHoklch(42.11% 0.16 267.2)
XYZxyz(9.3935, 6.9711, 35.4937)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742A3 #A38827
analogous
#2780A3 #2742A3 #4A27A3
triadic
#2742A3 #A32742 #42A327
tetradic
#2742A3 #A32780 #A38827 #27A34A
square
#2742A3 #A32780 #A38827 #27A34A
split-complementary
#2742A3 #A34A27 #80A327
monochromatic
#0F1A40 #1B2E72 #2742A3 #3859CF #6982DB

Accessibility & contrast

On white

8.77
#2742A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2742A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2742A3#FFFFFF#000000##FFFFFF
##2742A31.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2742a3;
/* rgb */ color: rgb(39, 66, 163);
/* oklch */ color: oklch(42.1% 0.160 267.2);
Tailwind
colors: {
  custom: {
    50: '#7476bf',
    500: '#2742a3',
    950: '#000000',
  },
}
SCSS
$custom: #2742a3;
$custom-light: #7476bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2742a3",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 226.935,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42114,
    "c": 0.15995,
    "h": 267.2
  },
  "luminance": 0.06972
}

Semantic roles & 50–950 ramp

primary
#2742A3
secondary
#C1AD64
accent
#C143E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2742A3

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

Preview Lab → · Contrast checker → · Palette generator →

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