#2A5EAF#2A5EAF

#2A5EAF is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.141 H 259.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2A5EAF
RGBrgb(42, 94, 175)
HSLhsl(217, 61%, 43%)
HSVhsv(217, 76%, 69%)
CMYKcmyk(76%, 46.3%, 0%, 31.4%)
CIE-LABlab(40.56, 11.78, -48.21)
CIE-LCHlch(40.56, 49.63, 283.73°)
OKLaboklab(49.12% -0.0266 -0.1383)
OKLCHoklch(49.12% 0.141 259.1)
XYZxyz(12.6926, 11.5914, 42.1175)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EAF #AF7B2A
analogous
#2AA1AF #2A5EAF #382AAF
triadic
#2A5EAF #AF2A5E #5EAF2A
tetradic
#2A5EAF #AF2AA1 #AF7B2A #2AAF38
square
#2A5EAF #AF2AA1 #AF7B2A #2AAF38
split-complementary
#2A5EAF #AF382A #A1AF2A
monochromatic
#12294C #1E437E #2A5EAF #447CD2 #759EDE

Accessibility & contrast

On white

6.33
#2A5EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2A5EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EAF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EAF#FFFFFF#000000##FFFFFF
##2A5EAF1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3366B2
Deuteranopia (green-blind)
#145AAD
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5eaf;
/* rgb */ color: rgb(42, 94, 175);
/* oklch */ color: oklch(49.1% 0.141 259.1);
Tailwind
colors: {
  custom: {
    50: '#768bc7',
    500: '#2a5eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eaf;
$custom-light: #768bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eaf",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 216.541,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4912,
    "c": 0.14078,
    "h": 259.1
  },
  "luminance": 0.11593
}

Semantic roles & 50–950 ramp

primary
#2A5EAF
secondary
#C6A46F
accent
#A543E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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