#2A4085#2A4085

#2A4085 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.119 H 267.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2A4085
RGBrgb(42, 64, 133)
HSLhsl(225, 52%, 34%)
HSVhsv(225, 68%, 52%)
CMYKcmyk(68.4%, 51.9%, 0%, 47.8%)
CIE-LABlab(29.04, 15.67, -41.37)
CIE-LCHlch(29.04, 44.24, 290.74°)
OKLaboklab(39.39% -0.0053 -0.1187)
OKLCHoklch(39.39% 0.119 267.4)
XYZxyz(7.0204, 5.8518, 22.9453)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4085 #856F2A
analogous
#2A6E85 #2A4085 #422A85
triadic
#2A4085 #852A40 #40852A
tetradic
#2A4085 #852A6E #856F2A #2A8542
square
#2A4085 #852A6E #856F2A #2A8542
split-complementary
#2A4085 #85422A #6E852A
monochromatic
#0D1328 #1B2A56 #2A4085 #3956B4 #5D78CC

Accessibility & contrast

On white

9.68
#2A4085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4085
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4085#FFFFFF#000000##FFFFFF
##2A40851.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194987
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4085;
/* rgb */ color: rgb(42, 64, 133);
/* oklch */ color: oklch(39.4% 0.119 267.4);
Tailwind
colors: {
  custom: {
    50: '#6f74a9',
    500: '#2a4085',
    950: '#000000',
  },
}
SCSS
$custom: #2a4085;
$custom-light: #6f74a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4085",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 133
  },
  "hsl": {
    "h": 225.495,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39392,
    "c": 0.11878,
    "h": 267.4
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#2A4085
secondary
#B29C59
accent
#B94CDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4085

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

Preview Lab → · Contrast checker → · Palette generator →

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