#2A3087#2A3087

#2A3087 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.143 H 273.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2A3087
RGBrgb(42, 48, 135)
HSLhsl(236, 53%, 35%)
HSVhsv(236, 69%, 53%)
CMYKcmyk(68.9%, 64.4%, 0%, 47.1%)
CIE-LABlab(24.81, 27.33, -49.47)
CIE-LCHlch(24.81, 56.52, 298.92°)
OKLaboklab(36.28% 0.0094 -0.1427)
OKLCHoklch(36.28% 0.143 273.8)
XYZxyz(6.3835, 4.3548, 23.4211)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3087 #87812A
analogous
#2A5F87 #2A3087 #532A87
triadic
#2A3087 #872A30 #30872A
tetradic
#2A3087 #872A5F #87812A #2A8753
square
#2A3087 #872A5F #87812A #2A8753
split-complementary
#2A3087 #87532A #5F872A
monochromatic
#0D0F2A #1B1F58 #2A3087 #3941B6 #5E66CD

Accessibility & contrast

On white

11.22
#2A3087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A3087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3087
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3087#FFFFFF#000000##FFFFFF
##2A30871.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3087;
/* rgb */ color: rgb(42, 48, 135);
/* oklch */ color: oklch(36.3% 0.143 273.8);
Tailwind
colors: {
  custom: {
    50: '#7068ab',
    500: '#2a3087',
    950: '#000000',
  },
}
SCSS
$custom: #2a3087;
$custom-light: #7068ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3087",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 135
  },
  "hsl": {
    "h": 236.129,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36284,
    "c": 0.14299,
    "h": 273.8
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#2A3087
secondary
#B3AD5A
accent
#D34CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3087

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

Preview Lab → · Contrast checker → · Palette generator →

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