#2A4086#2A4086

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

Color values

HEX#2A4086
RGBrgb(42, 64, 134)
HSLhsl(226, 52%, 35%)
HSVhsv(226, 69%, 53%)
CMYKcmyk(68.7%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.11, 16.05, -41.88)
CIE-LCHlch(29.11, 44.85, 290.97°)
OKLaboklab(39.47% -0.0052 -0.1201)
OKLCHoklch(39.47% 0.12 267.5)
XYZxyz(7.0898, 5.8796, 23.3109)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4086 #86702A
analogous
#2A6E86 #2A4086 #422A86
triadic
#2A4086 #862A40 #40862A
tetradic
#2A4086 #862A6E #86702A #2A8642
square
#2A4086 #862A6E #86702A #2A8642
split-complementary
#2A4086 #86422A #6E862A
monochromatic
#0D1329 #1B2A57 #2A4086 #3956B5 #5E78CD

Accessibility & contrast

On white

9.65
#2A4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4086
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4086#FFFFFF#000000##FFFFFF
##2A40861.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174989
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4086;
/* rgb */ color: rgb(42, 64, 134);
/* oklch */ color: oklch(39.5% 0.120 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f74aa',
    500: '#2a4086',
    950: '#000000',
  },
}
SCSS
$custom: #2a4086;
$custom-light: #6f74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4086",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 225.652,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39469,
    "c": 0.12026,
    "h": 267.5
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#2A4086
secondary
#B29D5A
accent
#B94CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4086

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

Preview Lab → · Contrast checker → · Palette generator →

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