#2A3A96#2A3A96

#2A3A96 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.151 H 270.3°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2A3A96
RGBrgb(42, 58, 150)
HSLhsl(231, 56%, 38%)
HSVhsv(231, 72%, 59%)
CMYKcmyk(72%, 61.3%, 0%, 41.2%)
CIE-LABlab(28.69, 26.21, -52.40)
CIE-LCHlch(28.69, 58.59, 296.57°)
OKLaboklab(39.55% 0.0009 -0.1512)
OKLCHoklch(39.55% 0.151 270.3)
XYZxyz(7.9710, 5.7196, 29.5322)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A96 #96862A
analogous
#2A7096 #2A3A96 #502A96
triadic
#2A3A96 #962A3A #3A962A
tetradic
#2A3A96 #962A70 #96862A #2A9650
square
#2A3A96 #962A70 #96862A #2A9650
split-complementary
#2A3A96 #96502A #70962A
monochromatic
#0F1536 #1D2866 #2A3A96 #374CC6 #6676D4

Accessibility & contrast

On white

9.79
#2A3A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A96
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A96#FFFFFF#000000##FFFFFF
##2A3A961.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3a96;
/* rgb */ color: rgb(42, 58, 150);
/* oklch */ color: oklch(39.6% 0.151 270.3);
Tailwind
colors: {
  custom: {
    50: '#7370b6',
    500: '#2a3a96',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a96;
$custom-light: #7370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a96",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 231.111,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39551,
    "c": 0.15119,
    "h": 270.3
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#2A3A96
secondary
#BAAD61
accent
#C948E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A96

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

Preview Lab → · Contrast checker → · Palette generator →

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