#2A3284#2A3284

#2A3284 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.136 H 273.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2A3284
RGBrgb(42, 50, 132)
HSLhsl(235, 52%, 34%)
HSVhsv(235, 68%, 52%)
CMYKcmyk(68.2%, 62.1%, 0%, 48.2%)
CIE-LABlab(25.07, 24.87, -47.17)
CIE-LCHlch(25.07, 53.33, 297.81°)
OKLaboklab(36.4% 0.0078 -0.1359)
OKLCHoklch(36.4% 0.136 273.3)
XYZxyz(6.2589, 4.4388, 22.3523)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3284 #847C2A
analogous
#2A5F84 #2A3284 #4F2A84
triadic
#2A3284 #842A32 #32842A
tetradic
#2A3284 #842A5F #847C2A #2A844F
square
#2A3284 #842A5F #847C2A #2A844F
split-complementary
#2A3284 #844F2A #5F842A
monochromatic
#0C0F27 #1B2056 #2A3284 #3944B2 #5D67CB

Accessibility & contrast

On white

11.12
#2A3284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3284
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3284#FFFFFF#000000##FFFFFF
##2A32841.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3284;
/* rgb */ color: rgb(42, 50, 132);
/* oklch */ color: oklch(36.4% 0.136 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f69a8',
    500: '#2a3284',
    950: '#000000',
  },
}
SCSS
$custom: #2a3284;
$custom-light: #6f69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3284",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 132
  },
  "hsl": {
    "h": 234.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36396,
    "c": 0.13613,
    "h": 273.3
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#2A3284
secondary
#B1A959
accent
#CF4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3284

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

Preview Lab → · Contrast checker → · Palette generator →

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