#2A58A8#2A58A8

#2A58A8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.3% C 0.138 H 260.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2A58A8
RGBrgb(42, 88, 168)
HSLhsl(218, 60%, 41%)
HSVhsv(218, 75%, 66%)
CMYKcmyk(75%, 47.6%, 0%, 34.1%)
CIE-LABlab(38.37, 13.01, -47.58)
CIE-LCHlch(38.37, 49.33, 285.29°)
OKLaboklab(47.29% -0.0226 -0.1365)
OKLCHoklch(47.29% 0.138 260.6)
XYZxyz(11.5099, 10.2976, 38.4192)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A58A8 #A87A2A
analogous
#2A97A8 #2A58A8 #3B2AA8
triadic
#2A58A8 #A82A58 #58A82A
tetradic
#2A58A8 #A82A97 #A87A2A #2AA83B
square
#2A58A8 #A82A97 #A87A2A #2AA83B
split-complementary
#2A58A8 #A83B2A #97A82A
monochromatic
#122546 #1E3E77 #2A58A8 #4074CF #7198DB

Accessibility & contrast

On white

6.86
#2A58A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A58A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A58A8
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A58A8#FFFFFF#000000##FFFFFF
##2A58A81.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AB
Deuteranopia (green-blind)
#0B55A6
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a58a8;
/* rgb */ color: rgb(42, 88, 168);
/* oklch */ color: oklch(47.3% 0.138 260.6);
Tailwind
colors: {
  custom: {
    50: '#7586c2',
    500: '#2a58a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a58a8;
$custom-light: #7586c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a58a8",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 168
  },
  "hsl": {
    "h": 218.095,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.13838,
    "h": 260.6
  },
  "luminance": 0.10299
}

Semantic roles & 50–950 ramp

primary
#2A58A8
secondary
#C3A36B
accent
#A945E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2A58A8

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

Preview Lab → · Contrast checker → · Palette generator →

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