#2A3B97#2A3B97

#2A3B97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.151 H 270.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A3B97
RGBrgb(42, 59, 151)
HSLhsl(231, 56%, 38%)
HSVhsv(231, 72%, 59%)
CMYKcmyk(72.2%, 60.9%, 0%, 40.8%)
CIE-LABlab(29.04, 25.92, -52.45)
CIE-LCHlch(29.04, 58.50, 296.30°)
OKLaboklab(39.83% 0.0001 -0.1513)
OKLCHoklch(39.83% 0.151 270)
XYZxyz(8.1028, 5.8537, 29.9750)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B97 #97862A
analogous
#2A7297 #2A3B97 #4F2A97
triadic
#2A3B97 #972A3B #3B972A
tetradic
#2A3B97 #972A72 #97862A #2A974F
square
#2A3B97 #972A72 #97862A #2A974F
split-complementary
#2A3B97 #974F2A #72972A
monochromatic
#0F1637 #1D2867 #2A3B97 #374EC7 #6778D5

Accessibility & contrast

On white

9.67
#2A3B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A3B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B97
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B97#FFFFFF#000000##FFFFFF
##2A3B971.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3b97;
/* rgb */ color: rgb(42, 59, 151);
/* oklch */ color: oklch(39.8% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#7370b6',
    500: '#2a3b97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b97;
$custom-light: #7370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b97",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 230.642,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.15132,
    "h": 270
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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