#2B4081#2B4081

#2B4081 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.112 H 267.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2B4081
RGBrgb(43, 64, 129)
HSLhsl(225, 50%, 34%)
HSVhsv(225, 67%, 51%)
CMYKcmyk(66.7%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.81, 14.32, -39.24)
CIE-LCHlch(28.81, 41.77, 290.05°)
OKLaboklab(39.15% -0.0048 -0.1124)
OKLCHoklch(39.15% 0.112 267.5)
XYZxyz(6.7907, 5.7647, 21.5195)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4081 #816C2B
analogous
#2B6B81 #2B4081 #412B81
triadic
#2B4081 #812B40 #40812B
tetradic
#2B4081 #812B6B #816C2B #2B8141
square
#2B4081 #812B6B #816C2B #2B8141
split-complementary
#2B4081 #81412B #6B812B
monochromatic
#0C1225 #1C2953 #2B4081 #3A57AF #5D78C9

Accessibility & contrast

On white

9.75
#2B4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2B4081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4081
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4081#FFFFFF#000000##FFFFFF
##2B40811.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4883
Deuteranopia (green-blind)
#0A4080
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b4081;
/* rgb */ color: rgb(43, 64, 129);
/* oklch */ color: oklch(39.1% 0.112 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e74a6',
    500: '#2b4081',
    950: '#000000',
  },
}
SCSS
$custom: #2b4081;
$custom-light: #6e74a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4081",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 225.349,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.11247,
    "h": 267.5
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#2B4081
secondary
#AF9A59
accent
#B84EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2B4081

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

Preview Lab → · Contrast checker → · Palette generator →

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