#2A3794#2A3794

#2A3794 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.152 H 271.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3794
RGBrgb(42, 55, 148)
HSLhsl(233, 56%, 37%)
HSVhsv(233, 72%, 58%)
CMYKcmyk(71.6%, 62.8%, 0%, 42%)
CIE-LABlab(27.74, 27.47, -52.73)
CIE-LCHlch(27.74, 59.46, 297.52°)
OKLaboklab(38.79% 0.0033 -0.1522)
OKLCHoklch(38.79% 0.152 271.2)
XYZxyz(7.6645, 5.3620, 28.6423)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3794 #94872A
analogous
#2A6C94 #2A3794 #522A94
triadic
#2A3794 #942A37 #37942A
tetradic
#2A3794 #942A6C #94872A #2A9452
square
#2A3794 #942A6C #94872A #2A9452
split-complementary
#2A3794 #94522A #6C942A
monochromatic
#0F1435 #1C2564 #2A3794 #3849C4 #6573D3

Accessibility & contrast

On white

10.13
#2A3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3794
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3794#FFFFFF#000000##FFFFFF
##2A37941.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3794;
/* rgb */ color: rgb(42, 55, 148);
/* oklch */ color: oklch(38.8% 0.152 271.2);
Tailwind
colors: {
  custom: {
    50: '#736db4',
    500: '#2a3794',
    950: '#000000',
  },
}
SCSS
$custom: #2a3794;
$custom-light: #736db4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3794",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 232.642,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38794,
    "c": 0.15222,
    "h": 271.2
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#2A3794
secondary
#B9AF60
accent
#CD49DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3794

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

Preview Lab → · Contrast checker → · Palette generator →

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