#2A3479#2A3479

#2A3479 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.9% C 0.117 H 272.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3479
RGBrgb(42, 52, 121)
HSLhsl(232, 48%, 32%)
HSVhsv(232, 65%, 47%)
CMYKcmyk(65.3%, 57%, 0%, 52.5%)
CIE-LABlab(24.73, 19.39, -40.80)
CIE-LCHlch(24.73, 45.17, 295.42°)
OKLaboklab(35.86% 0.0058 -0.1171)
OKLCHoklch(35.86% 0.117 272.8)
XYZxyz(5.6329, 4.3282, 18.6240)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3479 #796F2A
analogous
#2A5C79 #2A3479 #482A79
triadic
#2A3479 #792A34 #34792A
tetradic
#2A3479 #792A5C #796F2A #2A7948
square
#2A3479 #792A5C #796F2A #2A7948
split-complementary
#2A3479 #79482A #5C792A
monochromatic
#0A0D1E #1A204C #2A3479 #3A48A6 #5866C5

Accessibility & contrast

On white

11.26
#2A3479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A3479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3479
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3479#FFFFFF#000000##FFFFFF
##2A34791.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3479;
/* rgb */ color: rgb(42, 52, 121);
/* oklch */ color: oklch(35.9% 0.117 272.8);
Tailwind
colors: {
  custom: {
    50: '#6d6ba0',
    500: '#2a3479',
    950: '#000000',
  },
}
SCSS
$custom: #2a3479;
$custom-light: #6d6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3479",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 121
  },
  "hsl": {
    "h": 232.405,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3586,
    "c": 0.11729,
    "h": 272.8
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#2A3479
secondary
#ABA054
accent
#C750D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A3479

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

Preview Lab → · Contrast checker → · Palette generator →

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