#2A3274#2A3274

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

Color values

HEX#2A3274
RGBrgb(42, 50, 116)
HSLhsl(234, 47%, 31%)
HSVhsv(234, 64%, 45%)
CMYKcmyk(63.8%, 56.9%, 0%, 54.5%)
CIE-LABlab(23.78, 18.90, -39.15)
CIE-LCHlch(23.78, 43.47, 295.77°)
OKLaboklab(35.03% 0.0076 -0.1123)
OKLCHoklch(35.03% 0.113 273.9)
XYZxyz(5.2468, 4.0340, 17.0218)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3274 #746C2A
analogous
#2A5774 #2A3274 #472A74
triadic
#2A3274 #742A32 #32742A
tetradic
#2A3274 #742A57 #746C2A #2A7447
square
#2A3274 #742A57 #746C2A #2A7447
split-complementary
#2A3274 #74472A #57742A
monochromatic
#090B1A #1A1F47 #2A3274 #3A45A1 #5662C2

Accessibility & contrast

On white

11.62
#2A3274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A3274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3274
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3274#FFFFFF#000000##FFFFFF
##2A32741.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043C76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3274;
/* rgb */ color: rgb(42, 50, 116);
/* oklch */ color: oklch(35.0% 0.113 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c699d',
    500: '#2a3274',
    950: '#000000',
  },
}
SCSS
$custom: #2a3274;
$custom-light: #6c699d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3274",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 233.514,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.11258,
    "h": 273.9
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#2A3274
secondary
#A69D54
accent
#C851D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3274

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

Preview Lab → · Contrast checker → · Palette generator →

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