#2742A2#2742A2

#2742A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.159 H 267.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2742A2
RGBrgb(39, 66, 162)
HSLhsl(227, 61%, 39%)
HSVhsv(227, 76%, 64%)
CMYKcmyk(75.9%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.66, 25.01, -54.86)
CIE-LCHlch(31.66, 60.29, 294.50°)
OKLaboklab(42.03% -0.0079 -0.1584)
OKLCHoklch(42.03% 0.159 267.2)
XYZxyz(9.3042, 6.9354, 35.0237)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742A2 #A28727
analogous
#2780A2 #2742A2 #4927A2
triadic
#2742A2 #A22742 #42A227
tetradic
#2742A2 #A22780 #A28727 #27A249
square
#2742A2 #A22780 #A28727 #27A249
split-complementary
#2742A2 #A24927 #80A227
monochromatic
#0F1A3F #1B2E71 #2742A2 #3759CF #6982DB

Accessibility & contrast

On white

8.80
#2742A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2742A2
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2742A2#FFFFFF#000000##FFFFFF
##2742A21.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2742a2;
/* rgb */ color: rgb(39, 66, 162);
/* oklch */ color: oklch(42.0% 0.159 267.2);
Tailwind
colors: {
  custom: {
    50: '#7476be',
    500: '#2742a2',
    950: '#000000',
  },
}
SCSS
$custom: #2742a2;
$custom-light: #7476be;
$custom-dark: #000000;
JSON
{
  "hex": "#2742a2",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 226.829,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42028,
    "c": 0.15858,
    "h": 267.2
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2742A2

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

Preview Lab → · Contrast checker → · Palette generator →

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