#2A538D#2A538D

#2A538D is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.3% C 0.106 H 257.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2A538D
RGBrgb(42, 83, 141)
HSLhsl(215, 54%, 36%)
HSVhsv(215, 70%, 55%)
CMYKcmyk(70.2%, 41.1%, 0%, 44.7%)
CIE-LABlab(35.20, 5.95, -36.41)
CIE-LCHlch(35.20, 36.89, 279.28°)
OKLaboklab(44.3% -0.0232 -0.1038)
OKLCHoklch(44.3% 0.106 257.4)
XYZxyz(8.8541, 8.6009, 26.3877)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A538D #8D642A
analogous
#2A848D #2A538D #332A8D
triadic
#2A538D #8D2A53 #538D2A
tetradic
#2A538D #8D2A84 #8D642A #2A8D33
square
#2A538D #8D2A84 #8D642A #2A8D33
split-complementary
#2A538D #8D332A #848D2A
monochromatic
#0E1B2F #1C375E #2A538D #386FBC #618FD0

Accessibility & contrast

On white

7.72
#2A538D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A538D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A538D
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A538D#FFFFFF#000000##FFFFFF
##2A538D1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38588F
Deuteranopia (green-blind)
#294F8C
Tritanopia (blue-blind)
#006069
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a538d;
/* rgb */ color: rgb(42, 83, 141);
/* oklch */ color: oklch(44.3% 0.106 257.4);
Tailwind
colors: {
  custom: {
    50: '#7082af',
    500: '#2a538d',
    950: '#000000',
  },
}
SCSS
$custom: #2a538d;
$custom-light: #7082af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a538d",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 141
  },
  "hsl": {
    "h": 215.152,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.443,
    "c": 0.10634,
    "h": 257.4
  },
  "luminance": 0.08602
}

Semantic roles & 50–950 ramp

primary
#2A538D
secondary
#B6915D
accent
#A14ADD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A538D

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

Preview Lab → · Contrast checker → · Palette generator →

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