#2740AB#2740AB

#2740AB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.173 H 267.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2740AB
RGBrgb(39, 64, 171)
HSLhsl(229, 63%, 41%)
HSVhsv(229, 77%, 67%)
CMYKcmyk(77.2%, 62.6%, 0%, 32.9%)
CIE-LABlab(31.89, 29.76, -59.89)
CIE-LCHlch(31.89, 66.87, 296.42°)
OKLaboklab(42.44% -0.0065 -0.1731)
OKLCHoklch(42.44% 0.173 267.9)
XYZxyz(10.0182, 7.0373, 39.3505)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2740AB #AB9227
analogous
#2782AB #2740AB #5027AB
triadic
#2740AB #AB2740 #40AB27
tetradic
#2740AB #AB2782 #AB9227 #27AB50
square
#2740AB #AB2782 #AB9227 #27AB50
split-complementary
#2740AB #AB5027 #82AB27
monochromatic
#101B47 #1C2D79 #2740AB #3D59D3 #6E84DE

Accessibility & contrast

On white

8.72
#2740AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2740AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2740AB
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2740AB#FFFFFF#000000##FFFFFF
##2740AB1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2740ab;
/* rgb */ color: rgb(39, 64, 171);
/* oklch */ color: oklch(42.4% 0.173 267.9);
Tailwind
colors: {
  custom: {
    50: '#7674c5',
    500: '#2740ab',
    950: '#000000',
  },
}
SCSS
$custom: #2740ab;
$custom-light: #7674c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2740ab",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 228.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42435,
    "c": 0.17327,
    "h": 267.9
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2740AB

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

Preview Lab → · Contrast checker → · Palette generator →

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