#2A3790#2A3790

#2A3790 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.147 H 271.3°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3790
RGBrgb(42, 55, 144)
HSLhsl(232, 55%, 36%)
HSVhsv(232, 71%, 56%)
CMYKcmyk(70.8%, 61.8%, 0%, 43.5%)
CIE-LABlab(27.40, 25.98, -50.83)
CIE-LCHlch(27.40, 57.08, 297.07°)
OKLaboklab(38.44% 0.0034 -0.1466)
OKLCHoklch(38.44% 0.147 271.3)
XYZxyz(7.3534, 5.2375, 27.0036)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3790 #90832A
analogous
#2A6A90 #2A3790 #502A90
triadic
#2A3790 #902A37 #37902A
tetradic
#2A3790 #902A6A #90832A #2A9050
square
#2A3790 #902A6A #90832A #2A9050
split-complementary
#2A3790 #90502A #6A902A
monochromatic
#0E1331 #1C2561 #2A3790 #3849BF #6371D1

Accessibility & contrast

On white

10.26
#2A3790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A3790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3790
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3790#FFFFFF#000000##FFFFFF
##2A37901.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3790;
/* rgb */ color: rgb(42, 55, 144);
/* oklch */ color: oklch(38.4% 0.147 271.3);
Tailwind
colors: {
  custom: {
    50: '#726db1',
    500: '#2a3790',
    950: '#000000',
  },
}
SCSS
$custom: #2a3790;
$custom-light: #726db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3790",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 144
  },
  "hsl": {
    "h": 232.353,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38435,
    "c": 0.14664,
    "h": 271.3
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#2A3790
secondary
#B7AC5E
accent
#CB4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3790

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

Preview Lab → · Contrast checker → · Palette generator →

#2A3790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva