#2A3382#2A3382

#2A3382 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.132 H 273.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2A3382
RGBrgb(42, 51, 130)
HSLhsl(234, 51%, 34%)
HSVhsv(234, 68%, 51%)
CMYKcmyk(67.7%, 60.8%, 0%, 49%)
CIE-LABlab(25.17, 23.45, -45.75)
CIE-LCHlch(25.17, 51.41, 297.14°)
OKLaboklab(36.42% 0.007 -0.1317)
OKLCHoklch(36.42% 0.132 273)
XYZxyz(6.1666, 4.4711, 21.6528)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3382 #82792A
analogous
#2A5F82 #2A3382 #4D2A82
triadic
#2A3382 #822A33 #33822A
tetradic
#2A3382 #822A5F #82792A #2A824D
square
#2A3382 #822A5F #82792A #2A824D
split-complementary
#2A3382 #824D2A #5F822A
monochromatic
#0C0F25 #1B2154 #2A3382 #3945B0 #5C67CA

Accessibility & contrast

On white

11.09
#2A3382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A3382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3382
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3382#FFFFFF#000000##FFFFFF
##2A33821.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3382;
/* rgb */ color: rgb(42, 51, 130);
/* oklch */ color: oklch(36.4% 0.132 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f6aa7',
    500: '#2a3382',
    950: '#000000',
  },
}
SCSS
$custom: #2a3382;
$custom-light: #6f6aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3382",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 130
  },
  "hsl": {
    "h": 233.864,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.13192,
    "h": 273
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

primary
#2A3382
secondary
#B0A758
accent
#CC4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3382

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

Preview Lab → · Contrast checker → · Palette generator →

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