#2A3391#2A3391

#2A3391 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.153 H 272.4°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2A3391
RGBrgb(42, 51, 145)
HSLhsl(235, 55%, 37%)
HSVhsv(235, 71%, 57%)
CMYKcmyk(71%, 64.8%, 0%, 43.1%)
CIE-LABlab(26.46, 29.02, -52.98)
CIE-LCHlch(26.46, 60.41, 298.71°)
OKLaboklab(37.77% 0.0065 -0.153)
OKLCHoklch(37.77% 0.153 272.4)
XYZxyz(7.2478, 4.9035, 27.3471)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3391 #91882A
analogous
#2A6791 #2A3391 #552A91
triadic
#2A3391 #912A33 #33912A
tetradic
#2A3391 #912A67 #91882A #2A9155
square
#2A3391 #912A67 #91882A #2A9155
split-complementary
#2A3391 #91552A #67912A
monochromatic
#0F1232 #1C2262 #2A3391 #3844C0 #636DD2

Accessibility & contrast

On white

10.60
#2A3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3391
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3391#FFFFFF#000000##FFFFFF
##2A33911.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3391;
/* rgb */ color: rgb(42, 51, 145);
/* oklch */ color: oklch(37.8% 0.153 272.4);
Tailwind
colors: {
  custom: {
    50: '#726ab2',
    500: '#2a3391',
    950: '#000000',
  },
}
SCSS
$custom: #2a3391;
$custom-light: #726ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3391",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 234.757,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37767,
    "c": 0.1531,
    "h": 272.4
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#2A3391
secondary
#B8B05F
accent
#D149DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3391

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

Preview Lab → · Contrast checker → · Palette generator →

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