#2B3981#2B3981

#2B3981 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.122 H 271.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2B3981
RGBrgb(43, 57, 129)
HSLhsl(230, 50%, 34%)
HSVhsv(230, 67%, 51%)
CMYKcmyk(66.7%, 55.8%, 0%, 49.4%)
CIE-LABlab(26.80, 19.13, -42.48)
CIE-LCHlch(26.80, 46.59, 294.25°)
OKLaboklab(37.63% 0.0023 -0.122)
OKLCHoklch(37.63% 0.122 271.1)
XYZxyz(6.4205, 5.0243, 21.3960)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3981 #81732B
analogous
#2B6481 #2B3981 #482B81
triadic
#2B3981 #812B39 #39812B
tetradic
#2B3981 #812B64 #81732B #2B8148
square
#2B3981 #812B64 #81732B #2B8148
split-complementary
#2B3981 #81482B #64812B
monochromatic
#0C1025 #1C2553 #2B3981 #3A4DAF #5D6FC9

Accessibility & contrast

On white

10.47
#2B3981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2B3981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3981
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3981#FFFFFF#000000##FFFFFF
##2B39811.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064384
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b3981;
/* rgb */ color: rgb(43, 57, 129);
/* oklch */ color: oklch(37.6% 0.122 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f6fa6',
    500: '#2b3981',
    950: '#000000',
  },
}
SCSS
$custom: #2b3981;
$custom-light: #6f6fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3981",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 129
  },
  "hsl": {
    "h": 230.233,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37628,
    "c": 0.12202,
    "h": 271.1
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#2B3981
secondary
#AFA159
accent
#C34EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2B3981

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

Preview Lab → · Contrast checker → · Palette generator →

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