#2A5190#2A5190

#2A5190 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.113 H 259.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2A5190
RGBrgb(42, 81, 144)
HSLhsl(217, 55%, 36%)
HSVhsv(217, 71%, 56%)
CMYKcmyk(70.8%, 43.8%, 0%, 43.5%)
CIE-LABlab(34.78, 8.41, -38.91)
CIE-LCHlch(34.78, 39.81, 282.20°)
OKLaboklab(44.03% -0.0205 -0.1111)
OKLCHoklch(44.03% 0.113 259.6)
XYZxyz(8.9295, 8.3898, 27.5289)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5190 #90692A
analogous
#2A8490 #2A5190 #362A90
triadic
#2A5190 #902A51 #51902A
tetradic
#2A5190 #902A84 #90692A #2A9036
square
#2A5190 #902A84 #90692A #2A9036
split-complementary
#2A5190 #90362A #84902A
monochromatic
#0E1C31 #1C3661 #2A5190 #386CBF #638DD1

Accessibility & contrast

On white

7.84
#2A5190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A5190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5190
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5190#FFFFFF#000000##FFFFFF
##2A51901.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335792
Deuteranopia (green-blind)
#224D8F
Tritanopia (blue-blind)
#006069
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5190;
/* rgb */ color: rgb(42, 81, 144);
/* oklch */ color: oklch(44.0% 0.113 259.6);
Tailwind
colors: {
  custom: {
    50: '#7081b1',
    500: '#2a5190',
    950: '#000000',
  },
}
SCSS
$custom: #2a5190;
$custom-light: #7081b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5190",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 144
  },
  "hsl": {
    "h": 217.059,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44032,
    "c": 0.11302,
    "h": 259.6
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#2A5190
secondary
#B7955E
accent
#A54ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5190

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

Preview Lab → · Contrast checker → · Palette generator →

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