#2A3A97#2A3A97

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

Color values

HEX#2A3A97
RGBrgb(42, 58, 151)
HSLhsl(231, 56%, 38%)
HSVhsv(231, 72%, 59%)
CMYKcmyk(72.2%, 61.6%, 0%, 40.8%)
CIE-LABlab(28.78, 26.59, -52.88)
CIE-LCHlch(28.78, 59.19, 296.69°)
OKLaboklab(39.64% 0.0009 -0.1526)
OKLCHoklch(39.64% 0.153 270.3)
XYZxyz(8.0519, 5.7519, 29.9580)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A97 #97872A
analogous
#2A7097 #2A3A97 #512A97
triadic
#2A3A97 #972A3A #3A972A
tetradic
#2A3A97 #972A70 #97872A #2A9751
square
#2A3A97 #972A70 #97872A #2A9751
split-complementary
#2A3A97 #97512A #70972A
monochromatic
#0F1537 #1D2867 #2A3A97 #374CC7 #6777D5

Accessibility & contrast

On white

9.76
#2A3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A97
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A97#FFFFFF#000000##FFFFFF
##2A3A971.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3a97;
/* rgb */ color: rgb(42, 58, 151);
/* oklch */ color: oklch(39.6% 0.153 270.3);
Tailwind
colors: {
  custom: {
    50: '#7370b6',
    500: '#2a3a97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a97;
$custom-light: #7370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a97",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 231.193,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39639,
    "c": 0.15259,
    "h": 270.3
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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