#2A3296#2A3296

#2A3296 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.161 H 272.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2A3296
RGBrgb(42, 50, 150)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 59%)
CMYKcmyk(72%, 66.7%, 0%, 41.2%)
CIE-LABlab(26.66, 31.50, -55.72)
CIE-LCHlch(26.66, 64.01, 299.48°)
OKLaboklab(38.06% 0.0069 -0.161)
OKLCHoklch(38.06% 0.161 272.4)
XYZxyz(7.5986, 4.9747, 29.4080)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3296 #968E2A
analogous
#2A6896 #2A3296 #582A96
triadic
#2A3296 #962A32 #32962A
tetradic
#2A3296 #962A68 #968E2A #2A9658
square
#2A3296 #962A68 #968E2A #2A9658
split-complementary
#2A3296 #96582A #68962A
monochromatic
#0F1236 #1D2266 #2A3296 #3742C6 #666ED4

Accessibility & contrast

On white

10.53
#2A3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A3296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3296
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3296#FFFFFF#000000##FFFFFF
##2A32961.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3296;
/* rgb */ color: rgb(42, 50, 150);
/* oklch */ color: oklch(38.1% 0.161 272.4);
Tailwind
colors: {
  custom: {
    50: '#736ab6',
    500: '#2a3296',
    950: '#000000',
  },
}
SCSS
$custom: #2a3296;
$custom-light: #736ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3296",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 235.556,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38056,
    "c": 0.16115,
    "h": 272.4
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#2A3296
secondary
#BAB461
accent
#D448E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3296

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

Preview Lab → · Contrast checker → · Palette generator →

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