#2A3276#2A3276

#2A3276 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.116 H 273.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A3276
RGBrgb(42, 50, 118)
HSLhsl(234, 48%, 31%)
HSVhsv(234, 64%, 46%)
CMYKcmyk(64.4%, 57.6%, 0%, 53.7%)
CIE-LABlab(23.94, 19.65, -40.17)
CIE-LCHlch(23.94, 44.72, 296.06°)
OKLaboklab(35.2% 0.0077 -0.1153)
OKLCHoklch(35.2% 0.116 273.8)
XYZxyz(5.3644, 4.0810, 17.6411)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3276 #766E2A
analogous
#2A5876 #2A3276 #482A76
triadic
#2A3276 #762A32 #32762A
tetradic
#2A3276 #762A58 #766E2A #2A7648
square
#2A3276 #762A58 #766E2A #2A7648
split-complementary
#2A3276 #76482A #58762A
monochromatic
#0A0C1C #1A1F49 #2A3276 #3A45A3 #5763C3

Accessibility & contrast

On white

11.56
#2A3276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3276
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3276#FFFFFF#000000##FFFFFF
##2A32761.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3276;
/* rgb */ color: rgb(42, 50, 118);
/* oklch */ color: oklch(35.2% 0.116 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c699e',
    500: '#2a3276',
    950: '#000000',
  },
}
SCSS
$custom: #2a3276;
$custom-light: #6c699e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3276",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 118
  },
  "hsl": {
    "h": 233.684,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35195,
    "c": 0.1156,
    "h": 273.8
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#2A3276
secondary
#A89F54
accent
#C951D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3276

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

Preview Lab → · Contrast checker → · Palette generator →

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