#2A3397#2A3397

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

Color values

HEX#2A3397
RGBrgb(42, 51, 151)
HSLhsl(235, 56%, 38%)
HSVhsv(235, 72%, 59%)
CMYKcmyk(72.2%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.00, 31.22, -55.79)
CIE-LCHlch(27.00, 63.93, 299.23°)
OKLaboklab(38.33% 0.0061 -0.1612)
OKLCHoklch(38.33% 0.161 272.2)
XYZxyz(7.7227, 5.0935, 29.8483)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3397 #978E2A
analogous
#2A6997 #2A3397 #572A97
triadic
#2A3397 #972A33 #33972A
tetradic
#2A3397 #972A69 #978E2A #2A9757
square
#2A3397 #972A69 #978E2A #2A9757
split-complementary
#2A3397 #97572A #69972A
monochromatic
#0F1337 #1D2367 #2A3397 #3743C7 #6770D5

Accessibility & contrast

On white

10.40
#2A3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3397
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3397#FFFFFF#000000##FFFFFF
##2A33971.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3397;
/* rgb */ color: rgb(42, 51, 151);
/* oklch */ color: oklch(38.3% 0.161 272.2);
Tailwind
colors: {
  custom: {
    50: '#746bb7',
    500: '#2a3397',
    950: '#000000',
  },
}
SCSS
$custom: #2a3397;
$custom-light: #746bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3397",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 235.046,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3833,
    "c": 0.16129,
    "h": 272.2
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3397

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

Preview Lab → · Contrast checker → · Palette generator →

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