#2A3894#2A3894

#2A3894 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.151 H 271.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3894
RGBrgb(42, 56, 148)
HSLhsl(232, 56%, 37%)
HSVhsv(232, 72%, 58%)
CMYKcmyk(71.6%, 62.2%, 0%, 42%)
CIE-LABlab(28.00, 26.80, -52.31)
CIE-LCHlch(28.00, 58.78, 297.13°)
OKLaboklab(38.99% 0.0025 -0.1509)
OKLCHoklch(38.99% 0.151 271)
XYZxyz(7.7125, 5.4579, 28.6583)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3894 #94862A
analogous
#2A6D94 #2A3894 #512A94
triadic
#2A3894 #942A38 #38942A
tetradic
#2A3894 #942A6D #94862A #2A9451
square
#2A3894 #942A6D #94862A #2A9451
split-complementary
#2A3894 #94512A #6D942A
monochromatic
#0F1435 #1C2664 #2A3894 #384AC4 #6574D3

Accessibility & contrast

On white

10.04
#2A3894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3894
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3894#FFFFFF#000000##FFFFFF
##2A38941.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3894;
/* rgb */ color: rgb(42, 56, 148);
/* oklch */ color: oklch(39.0% 0.151 271.0);
Tailwind
colors: {
  custom: {
    50: '#726eb4',
    500: '#2a3894',
    950: '#000000',
  },
}
SCSS
$custom: #2a3894;
$custom-light: #726eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3894",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 148
  },
  "hsl": {
    "h": 232.075,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38985,
    "c": 0.15095,
    "h": 271
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#2A3894
secondary
#B9AE60
accent
#CB49DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3894

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

Preview Lab → · Contrast checker → · Palette generator →

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