#2A3197#2A3197

#2A3197 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.164 H 272.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2A3197
RGBrgb(42, 49, 151)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 59%)
CMYKcmyk(72.2%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.51, 32.51, -56.58)
CIE-LCHlch(26.51, 65.26, 299.88°)
OKLaboklab(37.98% 0.0075 -0.1635)
OKLCHoklch(37.98% 0.164 272.6)
XYZxyz(7.6372, 4.9225, 29.8198)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3197 #97902A
analogous
#2A6797 #2A3197 #5A2A97
triadic
#2A3197 #972A31 #31972A
tetradic
#2A3197 #972A67 #97902A #2A975A
square
#2A3197 #972A67 #97902A #2A975A
split-complementary
#2A3197 #975A2A #67972A
monochromatic
#0F1237 #1D2167 #2A3197 #3741C7 #676ED5

Accessibility & contrast

On white

10.58
#2A3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3197
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3197#FFFFFF#000000##FFFFFF
##2A31971.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3197;
/* rgb */ color: rgb(42, 49, 151);
/* oklch */ color: oklch(38.0% 0.164 272.6);
Tailwind
colors: {
  custom: {
    50: '#7469b7',
    500: '#2a3197',
    950: '#000000',
  },
}
SCSS
$custom: #2a3197;
$custom-light: #7469b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3197",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 236.147,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.16369,
    "h": 272.6
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#2A3197
secondary
#BBB562
accent
#D648E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3197

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

Preview Lab → · Contrast checker → · Palette generator →

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