#2A3096#2A3096

#2A3096 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.164 H 272.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2A3096
RGBrgb(42, 48, 150)
HSLhsl(237, 56%, 38%)
HSVhsv(237, 72%, 59%)
CMYKcmyk(72%, 68%, 0%, 41.2%)
CIE-LABlab(26.18, 32.80, -56.52)
CIE-LCHlch(26.18, 65.34, 300.13°)
OKLaboklab(37.7% 0.0083 -0.1633)
OKLCHoklch(37.7% 0.164 272.9)
XYZxyz(7.5150, 4.8074, 29.3801)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3096 #96902A
analogous
#2A6696 #2A3096 #5A2A96
triadic
#2A3096 #962A30 #30962A
tetradic
#2A3096 #962A66 #96902A #2A965A
square
#2A3096 #962A66 #96902A #2A965A
split-complementary
#2A3096 #965A2A #66962A
monochromatic
#0F1136 #1D2166 #2A3096 #373FC6 #666CD4

Accessibility & contrast

On white

10.71
#2A3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3096
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3096#FFFFFF#000000##FFFFFF
##2A30961.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3096;
/* rgb */ color: rgb(42, 48, 150);
/* oklch */ color: oklch(37.7% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#7468b6',
    500: '#2a3096',
    950: '#000000',
  },
}
SCSS
$custom: #2a3096;
$custom-light: #7468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3096",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 236.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37704,
    "c": 0.16354,
    "h": 272.9
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#2A3096
secondary
#BAB561
accent
#D748E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3096

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

Preview Lab → · Contrast checker → · Palette generator →

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