#2A3378#2A3378

#2A3378 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.6% C 0.117 H 273.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2A3378
RGBrgb(42, 51, 120)
HSLhsl(233, 48%, 32%)
HSVhsv(233, 65%, 47%)
CMYKcmyk(65%, 57.5%, 0%, 52.9%)
CIE-LABlab(24.37, 19.70, -40.74)
CIE-LCHlch(24.37, 45.26, 295.81°)
OKLaboklab(35.57% 0.0068 -0.117)
OKLCHoklch(35.57% 0.117 273.3)
XYZxyz(5.5277, 4.2155, 18.2880)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3378 #786F2A
analogous
#2A5A78 #2A3378 #482A78
triadic
#2A3378 #782A33 #33782A
tetradic
#2A3378 #782A5A #786F2A #2A7848
square
#2A3378 #782A5A #786F2A #2A7848
split-complementary
#2A3378 #78482A #5A782A
monochromatic
#0A0C1D #1A204B #2A3378 #3A46A5 #5864C5

Accessibility & contrast

On white

11.39
#2A3378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A3378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3378
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3378#FFFFFF#000000##FFFFFF
##2A33781.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3378;
/* rgb */ color: rgb(42, 51, 120);
/* oklch */ color: oklch(35.6% 0.117 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d6a9f',
    500: '#2a3378',
    950: '#000000',
  },
}
SCSS
$custom: #2a3378;
$custom-light: #6d6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3378",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 120
  },
  "hsl": {
    "h": 233.077,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.11719,
    "h": 273.3
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#2A3378
secondary
#AAA054
accent
#C850D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #2A3378

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

Preview Lab → · Contrast checker → · Palette generator →

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