#2A3076#2A3076

#2A3076 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.118 H 274.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2A3076
RGBrgb(42, 48, 118)
HSLhsl(235, 48%, 31%)
HSVhsv(235, 64%, 46%)
CMYKcmyk(64.4%, 59.3%, 0%, 53.7%)
CIE-LABlab(23.38, 21.03, -41.07)
CIE-LCHlch(23.38, 46.14, 297.12°)
OKLaboklab(34.78% 0.0098 -0.118)
OKLCHoklch(34.78% 0.118 274.7)
XYZxyz(5.2807, 3.9137, 17.6132)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3076 #76702A
analogous
#2A5676 #2A3076 #4A2A76
triadic
#2A3076 #762A30 #30762A
tetradic
#2A3076 #762A56 #76702A #2A764A
square
#2A3076 #762A56 #76702A #2A764A
split-complementary
#2A3076 #764A2A #56762A
monochromatic
#0A0B1C #1A1E49 #2A3076 #3A42A3 #5760C3

Accessibility & contrast

On white

11.78
#2A3076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A3076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3076
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3076#FFFFFF#000000##FFFFFF
##2A30761.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a3076;
/* rgb */ color: rgb(42, 48, 118);
/* oklch */ color: oklch(34.8% 0.118 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c689e',
    500: '#2a3076',
    950: '#000000',
  },
}
SCSS
$custom: #2a3076;
$custom-light: #6c689e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3076",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 118
  },
  "hsl": {
    "h": 235.263,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.1184,
    "h": 274.7
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#2A3076
secondary
#A8A154
accent
#CC51D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3076

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

Preview Lab → · Contrast checker → · Palette generator →

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