#2A3374#2A3374

#2A3374 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.111 H 273.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2A3374
RGBrgb(42, 51, 116)
HSLhsl(233, 47%, 31%)
HSVhsv(233, 64%, 45%)
CMYKcmyk(63.8%, 56%, 0%, 54.5%)
CIE-LABlab(24.07, 18.21, -38.69)
CIE-LCHlch(24.07, 42.76, 295.20°)
OKLaboklab(35.24% 0.0065 -0.111)
OKLCHoklch(35.24% 0.111 273.4)
XYZxyz(5.2900, 4.1204, 17.0362)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3374 #746B2A
analogous
#2A5874 #2A3374 #462A74
triadic
#2A3374 #742A33 #33742A
tetradic
#2A3374 #742A58 #746B2A #2A7446
square
#2A3374 #742A58 #746B2A #2A7446
split-complementary
#2A3374 #74462A #58742A
monochromatic
#090B1A #1A1F47 #2A3374 #3A47A1 #5664C2

Accessibility & contrast

On white

11.51
#2A3374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3374
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3374#FFFFFF#000000##FFFFFF
##2A33741.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093D76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#00424E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3374;
/* rgb */ color: rgb(42, 51, 116);
/* oklch */ color: oklch(35.2% 0.111 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c6a9c',
    500: '#2a3374',
    950: '#000000',
  },
}
SCSS
$custom: #2a3374;
$custom-light: #6c6a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3374",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 232.703,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35242,
    "c": 0.11116,
    "h": 273.4
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#2A3374
secondary
#A69C54
accent
#C651D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3374

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

Preview Lab → · Contrast checker → · Palette generator →

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