#2A58A1#2A58A1

#2A58A1 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.129 H 259.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A58A1
RGBrgb(42, 88, 161)
HSLhsl(217, 59%, 40%)
HSVhsv(217, 74%, 63%)
CMYKcmyk(73.9%, 45.3%, 0%, 36.9%)
CIE-LABlab(37.92, 10.32, -44.14)
CIE-LCHlch(37.92, 45.33, 283.16°)
OKLaboklab(46.8% -0.0238 -0.1264)
OKLCHoklch(46.8% 0.129 259.3)
XYZxyz(10.8753, 10.0437, 35.0768)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A58A1 #A1732A
analogous
#2A93A1 #2A58A1 #382AA1
triadic
#2A58A1 #A12A58 #58A12A
tetradic
#2A58A1 #A12A93 #A1732A #2AA138
square
#2A58A1 #A12A93 #A1732A #2AA138
split-complementary
#2A58A1 #A1382A #93A12A
monochromatic
#112340 #1D3D70 #2A58A1 #3C74CC #6D96D9

Accessibility & contrast

On white

6.98
#2A58A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A58A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A58A1
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A58A1#FFFFFF#000000##FFFFFF
##2A58A11.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA4
Deuteranopia (green-blind)
#1B54A0
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a58a1;
/* rgb */ color: rgb(42, 88, 161);
/* oklch */ color: oklch(46.8% 0.129 259.3);
Tailwind
colors: {
  custom: {
    50: '#7486bd',
    500: '#2a58a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a58a1;
$custom-light: #7486bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a58a1",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 161
  },
  "hsl": {
    "h": 216.807,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46799,
    "c": 0.12861,
    "h": 259.3
  },
  "luminance": 0.10045
}

Semantic roles & 50–950 ramp

primary
#2A58A1
secondary
#C09D67
accent
#A646E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A58A1

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

Preview Lab → · Contrast checker → · Palette generator →

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