#2A3271#2A3271

#2A3271 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.108 H 273.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2A3271
RGBrgb(42, 50, 113)
HSLhsl(233, 46%, 30%)
HSVhsv(233, 63%, 44%)
CMYKcmyk(62.8%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.56, 17.78, -37.60)
CIE-LCHlch(23.56, 41.59, 295.31°)
OKLaboklab(34.79% 0.0074 -0.1078)
OKLCHoklch(34.79% 0.108 273.9)
XYZxyz(5.0751, 3.9653, 16.1175)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3271 #71692A
analogous
#2A5571 #2A3271 #452A71
triadic
#2A3271 #712A32 #32712A
tetradic
#2A3271 #712A55 #71692A #2A7145
square
#2A3271 #712A55 #71692A #2A7145
split-complementary
#2A3271 #71452A #55712A
monochromatic
#090B18 #191E44 #2A3271 #3B469E #5561C0

Accessibility & contrast

On white

11.71
#2A3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3271
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3271#FFFFFF#000000##FFFFFF
##2A32711.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a3271;
/* rgb */ color: rgb(42, 50, 113);
/* oklch */ color: oklch(34.8% 0.108 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b699a',
    500: '#2a3271',
    950: '#000000',
  },
}
SCSS
$custom: #2a3271;
$custom-light: #6b699a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3271",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 233.239,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.10802,
    "h": 273.9
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#2A3271
secondary
#A39A54
accent
#C752D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3271

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

Preview Lab → · Contrast checker → · Palette generator →

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