#2B4181#2B4181

#2B4181 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.111 H 267.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2B4181
RGBrgb(43, 65, 129)
HSLhsl(225, 50%, 34%)
HSVhsv(225, 67%, 51%)
CMYKcmyk(66.7%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.10, 13.64, -38.77)
CIE-LCHlch(29.10, 41.10, 289.38°)
OKLaboklab(39.37% -0.0059 -0.111)
OKLCHoklch(39.37% 0.111 267)
XYZxyz(6.8476, 5.8785, 21.5384)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4181 #816B2B
analogous
#2B6C81 #2B4181 #402B81
triadic
#2B4181 #812B41 #41812B
tetradic
#2B4181 #812B6C #816B2B #2B8140
square
#2B4181 #812B6C #816B2B #2B8140
split-complementary
#2B4181 #81402B #6C812B
monochromatic
#0C1325 #1C2A53 #2B4181 #3A58AF #5D79C9

Accessibility & contrast

On white

9.65
#2B4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2B4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4181
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4181#FFFFFF#000000##FFFFFF
##2B41811.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#0E4180
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b4181;
/* rgb */ color: rgb(43, 65, 129);
/* oklch */ color: oklch(39.4% 0.111 267.0);
Tailwind
colors: {
  custom: {
    50: '#6e75a6',
    500: '#2b4181',
    950: '#000000',
  },
}
SCSS
$custom: #2b4181;
$custom-light: #6e75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4181",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 224.651,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3937,
    "c": 0.11113,
    "h": 267
  },
  "luminance": 0.05879
}

Semantic roles & 50–950 ramp

primary
#2B4181
secondary
#AF9959
accent
#B64EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2B4181

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

Preview Lab → · Contrast checker → · Palette generator →

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