#2A3072#2A3072

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

Color values

HEX#2A3072
RGBrgb(42, 48, 114)
HSLhsl(235, 46%, 31%)
HSVhsv(235, 63%, 45%)
CMYKcmyk(63.2%, 57.9%, 0%, 55.3%)
CIE-LABlab(23.07, 19.54, -39.02)
CIE-LCHlch(23.07, 43.64, 296.60°)
OKLaboklab(34.45% 0.0097 -0.112)
OKLCHoklch(34.45% 0.112 274.9)
XYZxyz(5.0481, 3.8207, 16.3878)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3072 #726C2A
analogous
#2A5472 #2A3072 #482A72
triadic
#2A3072 #722A30 #30722A
tetradic
#2A3072 #722A54 #726C2A #2A7248
square
#2A3072 #722A54 #726C2A #2A7248
split-complementary
#2A3072 #72482A #54722A
monochromatic
#090A19 #1A1D45 #2A3072 #3A439F #565FC1

Accessibility & contrast

On white

11.90
#2A3072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3072
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3072#FFFFFF#000000##FFFFFF
##2A30721.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a3072;
/* rgb */ color: rgb(42, 48, 114);
/* oklch */ color: oklch(34.4% 0.112 274.9);
Tailwind
colors: {
  custom: {
    50: '#6c689b',
    500: '#2a3072',
    950: '#000000',
  },
}
SCSS
$custom: #2a3072;
$custom-light: #6c689b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3072",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 114
  },
  "hsl": {
    "h": 235,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.1124,
    "h": 274.9
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#2A3072
secondary
#A49D54
accent
#CB52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3072

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

Preview Lab → · Contrast checker → · Palette generator →

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