#2A3C97#2A3C97

#2A3C97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.150 H 269.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2A3C97
RGBrgb(42, 60, 151)
HSLhsl(230, 56%, 38%)
HSVhsv(230, 72%, 59%)
CMYKcmyk(72.2%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.30, 25.25, -52.02)
CIE-LCHlch(29.30, 57.82, 295.89°)
OKLaboklab(40.03% -0.0007 -0.15)
OKLCHoklch(40.03% 0.15 269.7)
XYZxyz(8.1547, 5.9575, 29.9923)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C97 #97852A
analogous
#2A7297 #2A3C97 #4F2A97
triadic
#2A3C97 #972A3C #3C972A
tetradic
#2A3C97 #972A72 #97852A #2A974F
square
#2A3C97 #972A72 #97852A #2A974F
split-complementary
#2A3C97 #974F2A #72972A
monochromatic
#0F1637 #1D2967 #2A3C97 #374FC7 #6779D5

Accessibility & contrast

On white

9.58
#2A3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C97
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C97#FFFFFF#000000##FFFFFF
##2A3C971.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3c97;
/* rgb */ color: rgb(42, 60, 151);
/* oklch */ color: oklch(40.0% 0.150 269.7);
Tailwind
colors: {
  custom: {
    50: '#7371b6',
    500: '#2a3c97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c97;
$custom-light: #7371b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c97",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 230.092,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40031,
    "c": 0.15004,
    "h": 269.7
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#2A3C97
secondary
#BBAC62
accent
#C748E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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