#2A3074#2A3074

#2A3074 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.115 H 274.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2A3074
RGBrgb(42, 48, 116)
HSLhsl(235, 47%, 31%)
HSVhsv(235, 64%, 45%)
CMYKcmyk(63.8%, 58.6%, 0%, 54.5%)
CIE-LABlab(23.23, 20.29, -40.05)
CIE-LCHlch(23.23, 44.90, 296.86°)
OKLaboklab(34.61% 0.0097 -0.115)
OKLCHoklch(34.61% 0.115 274.8)
XYZxyz(5.1632, 3.8667, 16.9939)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3074 #746E2A
analogous
#2A5574 #2A3074 #492A74
triadic
#2A3074 #742A30 #30742A
tetradic
#2A3074 #742A55 #746E2A #2A7449
square
#2A3074 #742A55 #746E2A #2A7449
split-complementary
#2A3074 #74492A #55742A
monochromatic
#090B1A #1A1D47 #2A3074 #3A43A1 #565FC2

Accessibility & contrast

On white

11.84
#2A3074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A3074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3074
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3074#FFFFFF#000000##FFFFFF
##2A30741.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a3074;
/* rgb */ color: rgb(42, 48, 116);
/* oklch */ color: oklch(34.6% 0.115 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c689d',
    500: '#2a3074',
    950: '#000000',
  },
}
SCSS
$custom: #2a3074;
$custom-light: #6c689d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3074",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 116
  },
  "hsl": {
    "h": 235.135,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.11541,
    "h": 274.8
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#2A3074
secondary
#A69F54
accent
#CC51D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3074

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

Preview Lab → · Contrast checker → · Palette generator →

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