#2A3297#2A3297

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

Color values

HEX#2A3297
RGBrgb(42, 50, 151)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 59%)
CMYKcmyk(72.2%, 66.9%, 0%, 40.8%)
CIE-LABlab(26.75, 31.87, -56.19)
CIE-LCHlch(26.75, 64.59, 299.56°)
OKLaboklab(38.15% 0.0068 -0.1623)
OKLCHoklch(38.15% 0.162 272.4)
XYZxyz(7.6795, 5.0071, 29.8339)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3297 #978F2A
analogous
#2A6997 #2A3297 #582A97
triadic
#2A3297 #972A32 #32972A
tetradic
#2A3297 #972A69 #978F2A #2A9758
square
#2A3297 #972A69 #978F2A #2A9758
split-complementary
#2A3297 #97582A #69972A
monochromatic
#0F1237 #1D2267 #2A3297 #3742C7 #676FD5

Accessibility & contrast

On white

10.49
#2A3297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3297
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3297#FFFFFF#000000##FFFFFF
##2A32971.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3297;
/* rgb */ color: rgb(42, 50, 151);
/* oklch */ color: oklch(38.2% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#746ab7',
    500: '#2a3297',
    950: '#000000',
  },
}
SCSS
$custom: #2a3297;
$custom-light: #746ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3297",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 235.596,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38152,
    "c": 0.16249,
    "h": 272.4
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#2A3297
secondary
#BBB462
accent
#D548E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3297

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

Preview Lab → · Contrast checker → · Palette generator →

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