#2A3E97#2A3E97

#2A3E97 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.147 H 269.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2A3E97
RGBrgb(42, 62, 151)
HSLhsl(229, 56%, 38%)
HSVhsv(229, 72%, 59%)
CMYKcmyk(72.2%, 58.9%, 0%, 40.8%)
CIE-LABlab(29.84, 23.90, -51.15)
CIE-LCHlch(29.84, 56.46, 295.04°)
OKLaboklab(40.43% -0.0023 -0.1474)
OKLCHoklch(40.43% 0.147 269.1)
XYZxyz(8.2615, 6.1710, 30.0279)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E97 #97832A
analogous
#2A7497 #2A3E97 #4C2A97
triadic
#2A3E97 #972A3E #3E972A
tetradic
#2A3E97 #972A74 #97832A #2A974C
square
#2A3E97 #972A74 #97832A #2A974C
split-complementary
#2A3E97 #974C2A #74972A
monochromatic
#0F1737 #1D2A67 #2A3E97 #3752C7 #677BD5

Accessibility & contrast

On white

9.40
#2A3E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A3E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E97
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E97#FFFFFF#000000##FFFFFF
##2A3E971.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3e97;
/* rgb */ color: rgb(42, 62, 151);
/* oklch */ color: oklch(40.4% 0.147 269.1);
Tailwind
colors: {
  custom: {
    50: '#7373b6',
    500: '#2a3e97',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e97;
$custom-light: #7373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e97",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 228.991,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4043,
    "c": 0.14747,
    "h": 269.1
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#2A3E97
secondary
#BBAB62
accent
#C448E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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