#2A3071#2A3071

#2A3071 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.111 H 275.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2A3071
RGBrgb(42, 48, 113)
HSLhsl(235, 46%, 30%)
HSVhsv(235, 63%, 44%)
CMYKcmyk(62.8%, 57.5%, 0%, 55.7%)
CIE-LABlab(22.99, 19.17, -38.51)
CIE-LCHlch(22.99, 43.02, 296.47°)
OKLaboklab(34.37% 0.0096 -0.1105)
OKLCHoklch(34.37% 0.111 275)
XYZxyz(4.9915, 3.7980, 16.0896)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3071 #716B2A
analogous
#2A5371 #2A3071 #482A71
triadic
#2A3071 #712A30 #30712A
tetradic
#2A3071 #712A53 #716B2A #2A7148
square
#2A3071 #712A53 #716B2A #2A7148
split-complementary
#2A3071 #71482A #53712A
monochromatic
#090A18 #191D44 #2A3071 #3B439E #555EC0

Accessibility & contrast

On white

11.93
#2A3071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A3071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3071
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3071#FFFFFF#000000##FFFFFF
##2A30711.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a3071;
/* rgb */ color: rgb(42, 48, 113);
/* oklch */ color: oklch(34.4% 0.111 275.0);
Tailwind
colors: {
  custom: {
    50: '#6b689a',
    500: '#2a3071',
    950: '#000000',
  },
}
SCSS
$custom: #2a3071;
$custom-light: #6b689a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3071",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 113
  },
  "hsl": {
    "h": 234.93,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34365,
    "c": 0.11088,
    "h": 275
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#2A3071
secondary
#A39C54
accent
#CA52D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3071

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

Preview Lab → · Contrast checker → · Palette generator →

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