#2A4087#2A4087

#2A4087 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.122 H 267.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2A4087
RGBrgb(42, 64, 135)
HSLhsl(226, 53%, 35%)
HSVhsv(226, 69%, 53%)
CMYKcmyk(68.9%, 52.6%, 0%, 47.1%)
CIE-LABlab(29.18, 16.43, -42.38)
CIE-LCHlch(29.18, 45.45, 291.19°)
OKLaboklab(39.55% -0.0051 -0.1216)
OKLCHoklch(39.55% 0.122 267.6)
XYZxyz(7.1599, 5.9076, 23.6799)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4087 #87712A
analogous
#2A6F87 #2A4087 #422A87
triadic
#2A4087 #872A40 #40872A
tetradic
#2A4087 #872A6F #87712A #2A8742
square
#2A4087 #872A6F #87712A #2A8742
split-complementary
#2A4087 #87422A #6F872A
monochromatic
#0D142A #1B2A58 #2A4087 #3956B6 #5E79CD

Accessibility & contrast

On white

9.63
#2A4087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A4087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4087
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4087#FFFFFF#000000##FFFFFF
##2A40871.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4087;
/* rgb */ color: rgb(42, 64, 135);
/* oklch */ color: oklch(39.5% 0.122 267.6);
Tailwind
colors: {
  custom: {
    50: '#6f74aa',
    500: '#2a4087',
    950: '#000000',
  },
}
SCSS
$custom: #2a4087;
$custom-light: #6f74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4087",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 225.806,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39546,
    "c": 0.12174,
    "h": 267.6
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#2A4087
secondary
#B39E5A
accent
#BA4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4087

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

Preview Lab → · Contrast checker → · Palette generator →

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