#2741AB#2741AB

#2741AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.6% C 0.172 H 267.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2741AB
RGBrgb(39, 65, 171)
HSLhsl(228, 63%, 41%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(77.2%, 62%, 0%, 32.9%)
CIE-LABlab(32.15, 29.10, -59.47)
CIE-LCHlch(32.15, 66.20, 296.07°)
OKLaboklab(42.63% -0.0071 -0.1719)
OKLCHoklch(42.63% 0.172 267.6)
XYZxyz(10.0751, 7.1511, 39.3695)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2741AB #AB9127
analogous
#2783AB #2741AB #4F27AB
triadic
#2741AB #AB2741 #41AB27
tetradic
#2741AB #AB2783 #AB9127 #27AB4F
square
#2741AB #AB2783 #AB9127 #27AB4F
split-complementary
#2741AB #AB4F27 #83AB27
monochromatic
#101B47 #1C2E79 #2741AB #3D5AD3 #6E84DE

Accessibility & contrast

On white

8.64
#2741AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2741AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2741AB
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2741AB#FFFFFF#000000##FFFFFF
##2741AB1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2741ab;
/* rgb */ color: rgb(39, 65, 171);
/* oklch */ color: oklch(42.6% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#7675c5',
    500: '#2741ab',
    950: '#000000',
  },
}
SCSS
$custom: #2741ab;
$custom-light: #7675c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2741ab",
  "rgb": {
    "r": 39,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 228.182,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.17205,
    "h": 267.6
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#2741AB
secondary
#C5B369
accent
#C642E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2741AB

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

Preview Lab → · Contrast checker → · Palette generator →

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