#2A3678#2A3678

#2A3678 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.113 H 271.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2A3678
RGBrgb(42, 54, 120)
HSLhsl(231, 48%, 32%)
HSVhsv(231, 65%, 47%)
CMYKcmyk(65%, 55%, 0%, 52.9%)
CIE-LABlab(25.22, 17.62, -39.37)
CIE-LCHlch(25.22, 43.14, 294.11°)
OKLaboklab(36.2% 0.0036 -0.1129)
OKLCHoklch(36.2% 0.113 271.8)
XYZxyz(5.6630, 4.4862, 18.3331)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3678 #786C2A
analogous
#2A5D78 #2A3678 #452A78
triadic
#2A3678 #782A36 #36782A
tetradic
#2A3678 #782A5D #786C2A #2A7845
square
#2A3678 #782A5D #786C2A #2A7845
split-complementary
#2A3678 #78452A #5D782A
monochromatic
#0A0D1D #1A224B #2A3678 #3A4AA5 #5869C5

Accessibility & contrast

On white

11.07
#2A3678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3678
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3678#FFFFFF#000000##FFFFFF
##2A36781.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3F7A
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3678;
/* rgb */ color: rgb(42, 54, 120);
/* oklch */ color: oklch(36.2% 0.113 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c6c9f',
    500: '#2a3678',
    950: '#000000',
  },
}
SCSS
$custom: #2a3678;
$custom-light: #6c6c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3678",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 120
  },
  "hsl": {
    "h": 230.769,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36204,
    "c": 0.11299,
    "h": 271.8
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#2A3678
secondary
#AA9D54
accent
#C350D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3678

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

Preview Lab → · Contrast checker → · Palette generator →

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