#2A3B96#2A3B96

#2A3B96 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.150 H 270.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A3B96
RGBrgb(42, 59, 150)
HSLhsl(231, 56%, 38%)
HSVhsv(231, 72%, 59%)
CMYKcmyk(72%, 60.7%, 0%, 41.2%)
CIE-LABlab(28.96, 25.54, -51.97)
CIE-LCHlch(28.96, 57.91, 296.17°)
OKLaboklab(39.75% 0.0001 -0.1499)
OKLCHoklch(39.75% 0.15 270)
XYZxyz(8.0220, 5.8214, 29.5491)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B96 #96852A
analogous
#2A7196 #2A3B96 #4F2A96
triadic
#2A3B96 #962A3B #3B962A
tetradic
#2A3B96 #962A71 #96852A #2A964F
square
#2A3B96 #962A71 #96852A #2A964F
split-complementary
#2A3B96 #964F2A #71962A
monochromatic
#0F1536 #1D2866 #2A3B96 #374EC6 #6678D4

Accessibility & contrast

On white

9.70
#2A3B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A3B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B96
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B96#FFFFFF#000000##FFFFFF
##2A3B961.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3b96;
/* rgb */ color: rgb(42, 59, 150);
/* oklch */ color: oklch(39.7% 0.150 270.0);
Tailwind
colors: {
  custom: {
    50: '#7370b6',
    500: '#2a3b96',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b96;
$custom-light: #7370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b96",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 150
  },
  "hsl": {
    "h": 230.556,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39746,
    "c": 0.14992,
    "h": 270
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#2A3B96
secondary
#BAAC61
accent
#C848E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3B96

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

Preview Lab → · Contrast checker → · Palette generator →

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