#2A3495#2A3495

#2A3495 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.157 H 272.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2A3495
RGBrgb(42, 52, 149)
HSLhsl(234, 56%, 37%)
HSVhsv(234, 72%, 58%)
CMYKcmyk(71.8%, 65.1%, 0%, 41.6%)
CIE-LABlab(27.07, 29.83, -54.45)
CIE-LCHlch(27.07, 62.08, 298.72°)
OKLaboklab(38.32% 0.0055 -0.1572)
OKLCHoklch(38.32% 0.157 272)
XYZxyz(7.6058, 5.1174, 29.0149)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3495 #958B2A
analogous
#2A6995 #2A3495 #562A95
triadic
#2A3495 #952A34 #34952A
tetradic
#2A3495 #952A69 #958B2A #2A9556
square
#2A3495 #952A69 #958B2A #2A9556
split-complementary
#2A3495 #95562A #69952A
monochromatic
#0F1336 #1D2365 #2A3495 #3745C5 #6670D4

Accessibility & contrast

On white

10.38
#2A3495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A3495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3495
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3495#FFFFFF#000000##FFFFFF
##2A34951.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3495;
/* rgb */ color: rgb(42, 52, 149);
/* oklch */ color: oklch(38.3% 0.157 272.0);
Tailwind
colors: {
  custom: {
    50: '#736bb5',
    500: '#2a3495',
    950: '#000000',
  },
}
SCSS
$custom: #2a3495;
$custom-light: #736bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3495",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 234.393,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38324,
    "c": 0.15735,
    "h": 272
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#2A3495
secondary
#BAB261
accent
#D148DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3495

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

Preview Lab → · Contrast checker → · Palette generator →

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