#2A3687#2A3687

#2A3687 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.135 H 271.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2A3687
RGBrgb(42, 54, 135)
HSLhsl(232, 53%, 35%)
HSVhsv(232, 69%, 53%)
CMYKcmyk(68.9%, 60%, 0%, 47.1%)
CIE-LABlab(26.39, 23.28, -46.90)
CIE-LCHlch(26.39, 52.36, 296.40°)
OKLaboklab(37.45% 0.0043 -0.1351)
OKLCHoklch(37.45% 0.135 271.8)
XYZxyz(6.6457, 4.8792, 23.5085)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3687 #877B2A
analogous
#2A6587 #2A3687 #4D2A87
triadic
#2A3687 #872A36 #36872A
tetradic
#2A3687 #872A65 #877B2A #2A874D
square
#2A3687 #872A65 #877B2A #2A874D
split-complementary
#2A3687 #874D2A #65872A
monochromatic
#0D112A #1B2358 #2A3687 #3949B6 #5E6DCD

Accessibility & contrast

On white

10.63
#2A3687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3687
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3687#FFFFFF#000000##FFFFFF
##2A36871.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3687;
/* rgb */ color: rgb(42, 54, 135);
/* oklch */ color: oklch(37.5% 0.135 271.8);
Tailwind
colors: {
  custom: {
    50: '#706cab',
    500: '#2a3687',
    950: '#000000',
  },
}
SCSS
$custom: #2a3687;
$custom-light: #706cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3687",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 232.258,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.13514,
    "h": 271.8
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#2A3687
secondary
#B3A75A
accent
#C94CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3687

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

Preview Lab → · Contrast checker → · Palette generator →

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