#2A58A2#2A58A2

#2A58A2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.130 H 259.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2A58A2
RGBrgb(42, 88, 162)
HSLhsl(217, 59%, 40%)
HSVhsv(217, 74%, 64%)
CMYKcmyk(74.1%, 45.7%, 0%, 36.5%)
CIE-LABlab(37.98, 10.70, -44.63)
CIE-LCHlch(37.98, 45.90, 283.49°)
OKLaboklab(46.87% -0.0236 -0.1278)
OKLCHoklch(46.87% 0.13 259.5)
XYZxyz(10.9638, 10.0791, 35.5431)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A58A2 #A2742A
analogous
#2A94A2 #2A58A2 #382AA2
triadic
#2A58A2 #A22A58 #58A22A
tetradic
#2A58A2 #A22A94 #A2742A #2AA238
square
#2A58A2 #A22A94 #A2742A #2AA238
split-complementary
#2A58A2 #A2382A #94A22A
monochromatic
#112341 #1D3E71 #2A58A2 #3D74CD #6D97D9

Accessibility & contrast

On white

6.96
#2A58A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2A58A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A58A2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A58A2#FFFFFF#000000##FFFFFF
##2A58A21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#1A54A1
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a58a2;
/* rgb */ color: rgb(42, 88, 162);
/* oklch */ color: oklch(46.9% 0.130 259.5);
Tailwind
colors: {
  custom: {
    50: '#7486be',
    500: '#2a58a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a58a2;
$custom-light: #7486be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a58a2",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 162
  },
  "hsl": {
    "h": 217,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46868,
    "c": 0.13001,
    "h": 259.5
  },
  "luminance": 0.1008
}

Semantic roles & 50–950 ramp

primary
#2A58A2
secondary
#C09E68
accent
#A646E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A58A2

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

Preview Lab → · Contrast checker → · Palette generator →

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