#2742B2#2742B2

#2742B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.180 H 267.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2742B2
RGBrgb(39, 66, 178)
HSLhsl(228, 64%, 43%)
HSVhsv(228, 78%, 70%)
CMYKcmyk(78.1%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.01, 31.07, -62.23)
CIE-LCHlch(33.01, 69.56, 296.53°)
OKLaboklab(43.45% -0.0078 -0.18)
OKLCHoklch(43.45% 0.18 267.5)
XYZxyz(10.8180, 7.5409, 42.9962)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2742B2 #B29727
analogous
#2788B2 #2742B2 #5127B2
triadic
#2742B2 #B22742 #42B227
tetradic
#2742B2 #B22788 #B29727 #27B251
square
#2742B2 #B22788 #B29727 #27B251
split-complementary
#2742B2 #B25127 #88B227
monochromatic
#111D4E #1C2F80 #2742B2 #415ED5 #7388E0

Accessibility & contrast

On white

8.37
#2742B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2742B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2742B2
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2742B2#FFFFFF#000000##FFFFFF
##2742B21.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2742b2;
/* rgb */ color: rgb(39, 66, 178);
/* oklch */ color: oklch(43.4% 0.180 267.5);
Tailwind
colors: {
  custom: {
    50: '#7876ca',
    500: '#2742b2',
    950: '#000000',
  },
}
SCSS
$custom: #2742b2;
$custom-light: #7876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2742b2",
  "rgb": {
    "r": 39,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 228.345,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43449,
    "c": 0.18017,
    "h": 267.5
  },
  "luminance": 0.07542
}

Semantic roles & 50–950 ramp

primary
#2742B2
secondary
#C8B66D
accent
#C741E7
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2742B2

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

Preview Lab → · Contrast checker → · Palette generator →

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