#2B4781#2B4781

#2B4781 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.103 H 263.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2B4781
RGBrgb(43, 71, 129)
HSLhsl(220, 50%, 34%)
HSVhsv(220, 67%, 51%)
CMYKcmyk(66.7%, 45%, 0%, 49.4%)
CIE-LABlab(30.89, 9.56, -35.91)
CIE-LCHlch(30.89, 37.16, 284.90°)
OKLaboklab(40.74% -0.0123 -0.1025)
OKLCHoklch(40.74% 0.103 263.2)
XYZxyz(7.2106, 6.6044, 21.6594)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4781 #81652B
analogous
#2B7281 #2B4781 #3A2B81
triadic
#2B4781 #812B47 #47812B
tetradic
#2B4781 #812B72 #81652B #2B813A
square
#2B4781 #812B72 #81652B #2B813A
split-complementary
#2B4781 #813A2B #72812B
monochromatic
#0C1425 #1C2E53 #2B4781 #3A60AF #5D80C9

Accessibility & contrast

On white

9.05
#2B4781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2B4781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4781
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4781#FFFFFF#000000##FFFFFF
##2B47811.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#1E4580
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b4781;
/* rgb */ color: rgb(43, 71, 129);
/* oklch */ color: oklch(40.7% 0.103 263.2);
Tailwind
colors: {
  custom: {
    50: '#6e79a6',
    500: '#2b4781',
    950: '#000000',
  },
}
SCSS
$custom: #2b4781;
$custom-light: #6e79a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4781",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 220.465,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40738,
    "c": 0.1032,
    "h": 263.2
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#2B4781
secondary
#AF9359
accent
#AC4EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2B4781

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

Preview Lab → · Contrast checker → · Palette generator →

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