#2A4783#2A4783

#2A4783 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.107 H 263.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2A4783
RGBrgb(42, 71, 131)
HSLhsl(220, 51%, 34%)
HSVhsv(220, 68%, 51%)
CMYKcmyk(67.9%, 45.8%, 0%, 48.6%)
CIE-LABlab(30.97, 10.13, -37.03)
CIE-LCHlch(30.97, 38.39, 285.30°)
OKLaboklab(40.82% -0.0128 -0.1058)
OKLCHoklch(40.82% 0.107 263.1)
XYZxyz(7.3034, 6.6367, 22.3645)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4783 #83662A
analogous
#2A7483 #2A4783 #3A2A83
triadic
#2A4783 #832A47 #47832A
tetradic
#2A4783 #832A74 #83662A #2A833A
square
#2A4783 #832A74 #83662A #2A833A
split-complementary
#2A4783 #833A2A #74832A
monochromatic
#0C1526 #1B2E55 #2A4783 #3960B1 #5D80CB

Accessibility & contrast

On white

9.02
#2A4783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A4783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4783
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4783#FFFFFF#000000##FFFFFF
##2A47831.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D85
Deuteranopia (green-blind)
#1B4582
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4783;
/* rgb */ color: rgb(42, 71, 131);
/* oklch */ color: oklch(40.8% 0.107 263.1);
Tailwind
colors: {
  custom: {
    50: '#6e79a7',
    500: '#2a4783',
    950: '#000000',
  },
}
SCSS
$custom: #2a4783;
$custom-light: #6e79a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4783",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 131
  },
  "hsl": {
    "h": 220.449,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40824,
    "c": 0.10656,
    "h": 263.1
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#2A4783
secondary
#B19458
accent
#AD4DDB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4783

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

Preview Lab → · Contrast checker → · Palette generator →

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