#2A3897#2A3897

#2A3897 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.155 H 270.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A3897
RGBrgb(42, 56, 151)
HSLhsl(232, 56%, 38%)
HSVhsv(232, 72%, 59%)
CMYKcmyk(72.2%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.26, 27.92, -53.73)
CIE-LCHlch(28.26, 60.55, 297.46°)
OKLaboklab(39.26% 0.0024 -0.1551)
OKLCHoklch(39.26% 0.155 270.9)
XYZxyz(7.9530, 5.5542, 29.9251)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3897 #97892A
analogous
#2A6E97 #2A3897 #532A97
triadic
#2A3897 #972A38 #38972A
tetradic
#2A3897 #972A6E #97892A #2A9753
square
#2A3897 #972A6E #97892A #2A9753
split-complementary
#2A3897 #97532A #6E972A
monochromatic
#0F1437 #1D2667 #2A3897 #374AC7 #6775D5

Accessibility & contrast

On white

9.95
#2A3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3897
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3897#FFFFFF#000000##FFFFFF
##2A38971.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3897;
/* rgb */ color: rgb(42, 56, 151);
/* oklch */ color: oklch(39.3% 0.155 270.9);
Tailwind
colors: {
  custom: {
    50: '#736eb6',
    500: '#2a3897',
    950: '#000000',
  },
}
SCSS
$custom: #2a3897;
$custom-light: #736eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3897",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 232.294,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39255,
    "c": 0.15511,
    "h": 270.9
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#2A3897
secondary
#BBAF62
accent
#CC48E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3897

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

Preview Lab → · Contrast checker → · Palette generator →

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