#2A3175#2A3175

#2A3175 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.116 H 274.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2A3175
RGBrgb(42, 49, 117)
HSLhsl(234, 47%, 31%)
HSVhsv(234, 64%, 46%)
CMYKcmyk(64.1%, 58.1%, 0%, 54.1%)
CIE-LABlab(23.58, 19.97, -40.11)
CIE-LCHlch(23.58, 44.81, 296.46°)
OKLaboklab(34.9% 0.0087 -0.1152)
OKLCHoklch(34.9% 0.116 274.3)
XYZxyz(5.2630, 3.9728, 17.3157)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3175 #756E2A
analogous
#2A5675 #2A3175 #482A75
triadic
#2A3175 #752A31 #31752A
tetradic
#2A3175 #752A56 #756E2A #2A7548
square
#2A3175 #752A56 #756E2A #2A7548
split-complementary
#2A3175 #75482A #56752A
monochromatic
#0A0B1B #1A1E48 #2A3175 #3A44A2 #5761C3

Accessibility & contrast

On white

11.70
#2A3175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A3175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3175
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3175#FFFFFF#000000##FFFFFF
##2A31751.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3175;
/* rgb */ color: rgb(42, 49, 117);
/* oklch */ color: oklch(34.9% 0.116 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c699d',
    500: '#2a3175',
    950: '#000000',
  },
}
SCSS
$custom: #2a3175;
$custom-light: #6c699d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3175",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 117
  },
  "hsl": {
    "h": 234.4,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.1155,
    "h": 274.3
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#2A3175
secondary
#A79F54
accent
#CA51D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3175

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

Preview Lab → · Contrast checker → · Palette generator →

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