#2A3D97#2A3D97

#2A3D97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.149 H 269.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2A3D97
RGBrgb(42, 61, 151)
HSLhsl(230, 56%, 38%)
HSVhsv(230, 72%, 59%)
CMYKcmyk(72.2%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.57, 24.57, -51.58)
CIE-LCHlch(29.57, 57.14, 295.47°)
OKLaboklab(40.23% -0.0015 -0.1487)
OKLCHoklch(40.23% 0.149 269.4)
XYZxyz(8.2076, 6.0633, 30.0099)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D97 #97842A
analogous
#2A7497 #2A3D97 #4D2A97
triadic
#2A3D97 #972A3D #3D972A
tetradic
#2A3D97 #972A74 #97842A #2A974D
square
#2A3D97 #972A74 #97842A #2A974D
split-complementary
#2A3D97 #974D2A #74972A
monochromatic
#0F1637 #1D2A67 #2A3D97 #3750C7 #677AD5

Accessibility & contrast

On white

9.49
#2A3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A3D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D97
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D97#FFFFFF#000000##FFFFFF
##2A3D971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3d97;
/* rgb */ color: rgb(42, 61, 151);
/* oklch */ color: oklch(40.2% 0.149 269.4);
Tailwind
colors: {
  custom: {
    50: '#7372b6',
    500: '#2a3d97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d97;
$custom-light: #7372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d97",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 229.541,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.14876,
    "h": 269.4
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#2A3D97
secondary
#BBAB62
accent
#C548E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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