#2A4F83#2A4F83

#2A4F83 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.097 H 257.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2A4F83
RGBrgb(42, 79, 131)
HSLhsl(215, 51%, 34%)
HSVhsv(215, 68%, 51%)
CMYKcmyk(67.9%, 39.7%, 0%, 48.6%)
CIE-LABlab(33.40, 4.79, -33.15)
CIE-LCHlch(33.40, 33.50, 278.22°)
OKLaboklab(42.71% -0.0214 -0.0943)
OKLCHoklch(42.71% 0.097 257.2)
XYZxyz(7.8461, 7.7221, 22.5454)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F83 #835E2A
analogous
#2A7C83 #2A4F83 #322A83
triadic
#2A4F83 #832A4F #4F832A
tetradic
#2A4F83 #832A7C #835E2A #2A8332
square
#2A4F83 #832A7C #835E2A #2A8332
split-complementary
#2A4F83 #83322A #7C832A
monochromatic
#0C1726 #1B3355 #2A4F83 #396BB1 #5D8ACB

Accessibility & contrast

On white

8.25
#2A4F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A4F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F83
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F83#FFFFFF#000000##FFFFFF
##2A4F831.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385385
Deuteranopia (green-blind)
#2B4B82
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4f83;
/* rgb */ color: rgb(42, 79, 131);
/* oklch */ color: oklch(42.7% 0.097 257.2);
Tailwind
colors: {
  custom: {
    50: '#6e7fa7',
    500: '#2a4f83',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f83;
$custom-light: #6e7fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f83",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 131
  },
  "hsl": {
    "h": 215.056,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42706,
    "c": 0.09669,
    "h": 257.2
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#2A4F83
secondary
#B18C58
accent
#A04DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4F83

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

Preview Lab → · Contrast checker → · Palette generator →

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