#2A3D82#2A3D82

#2A3D82 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.5% C 0.118 H 268.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2A3D82
RGBrgb(42, 61, 130)
HSLhsl(227, 51%, 34%)
HSVhsv(227, 68%, 51%)
CMYKcmyk(67.7%, 53.1%, 0%, 49%)
CIE-LABlab(27.96, 16.58, -41.24)
CIE-LCHlch(27.96, 44.45, 291.90°)
OKLaboklab(38.51% -0.0027 -0.1183)
OKLCHoklch(38.51% 0.118 268.7)
XYZxyz(6.6515, 5.4408, 21.8144)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D82 #826F2A
analogous
#2A6982 #2A3D82 #432A82
triadic
#2A3D82 #822A3D #3D822A
tetradic
#2A3D82 #822A69 #826F2A #2A8243
square
#2A3D82 #822A69 #826F2A #2A8243
split-complementary
#2A3D82 #82432A #69822A
monochromatic
#0C1225 #1B2754 #2A3D82 #3953B0 #5C74CA

Accessibility & contrast

On white

10.06
#2A3D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D82
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D82#FFFFFF#000000##FFFFFF
##2A3D821.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144684
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3d82;
/* rgb */ color: rgb(42, 61, 130);
/* oklch */ color: oklch(38.5% 0.118 268.7);
Tailwind
colors: {
  custom: {
    50: '#6e72a7',
    500: '#2a3d82',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d82;
$custom-light: #6e72a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d82",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 130
  },
  "hsl": {
    "h": 227.045,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.11837,
    "h": 268.7
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#2A3D82
secondary
#B09D58
accent
#BC4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3D82

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

Preview Lab → · Contrast checker → · Palette generator →

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