#2A538E#2A538E

#2A538E is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.4% C 0.108 H 257.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2A538E
RGBrgb(42, 83, 142)
HSLhsl(215, 54%, 36%)
HSVhsv(215, 70%, 56%)
CMYKcmyk(70.4%, 41.5%, 0%, 44.3%)
CIE-LABlab(35.26, 6.33, -36.93)
CIE-LCHlch(35.26, 37.46, 279.73°)
OKLaboklab(44.37% -0.023 -0.1053)
OKLCHoklch(44.37% 0.108 257.7)
XYZxyz(8.9288, 8.6308, 26.7813)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A538E #8E652A
analogous
#2A858E #2A538E #332A8E
triadic
#2A538E #8E2A53 #538E2A
tetradic
#2A538E #8E2A85 #8E652A #2A8E33
square
#2A538E #8E2A85 #8E652A #2A8E33
split-complementary
#2A538E #8E332A #858E2A
monochromatic
#0E1C30 #1C375F #2A538E #386FBD #628FD1

Accessibility & contrast

On white

7.70
#2A538E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A538E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A538E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A538E#FFFFFF#000000##FFFFFF
##2A538E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385890
Deuteranopia (green-blind)
#284F8D
Tritanopia (blue-blind)
#006169
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a538e;
/* rgb */ color: rgb(42, 83, 142);
/* oklch */ color: oklch(44.4% 0.108 257.7);
Tailwind
colors: {
  custom: {
    50: '#7082af',
    500: '#2a538e',
    950: '#000000',
  },
}
SCSS
$custom: #2a538e;
$custom-light: #7082af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a538e",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 142
  },
  "hsl": {
    "h": 215.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44366,
    "c": 0.10776,
    "h": 257.7
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

primary
#2A538E
secondary
#B6925D
accent
#A14ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A538E

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

Preview Lab → · Contrast checker → · Palette generator →

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