#2B3781#2B3781

#2B3781 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.125 H 272.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2B3781
RGBrgb(43, 55, 129)
HSLhsl(232, 50%, 34%)
HSVhsv(232, 67%, 51%)
CMYKcmyk(66.7%, 57.4%, 0%, 49.4%)
CIE-LABlab(26.25, 20.51, -43.38)
CIE-LCHlch(26.25, 47.98, 295.30°)
OKLaboklab(37.21% 0.0043 -0.1247)
OKLCHoklch(37.21% 0.125 272)
XYZxyz(6.3236, 4.8304, 21.3637)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3781 #81752B
analogous
#2B6281 #2B3781 #4A2B81
triadic
#2B3781 #812B37 #37812B
tetradic
#2B3781 #812B62 #81752B #2B814A
square
#2B3781 #812B62 #81752B #2B814A
split-complementary
#2B3781 #814A2B #62812B
monochromatic
#0C1025 #1C2353 #2B3781 #3A4BAF #5D6CC9

Accessibility & contrast

On white

10.68
#2B3781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B3781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3781
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3781#FFFFFF#000000##FFFFFF
##2B37811.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b3781;
/* rgb */ color: rgb(43, 55, 129);
/* oklch */ color: oklch(37.2% 0.125 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f6da6',
    500: '#2b3781',
    950: '#000000',
  },
}
SCSS
$custom: #2b3781;
$custom-light: #6f6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3781",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 231.628,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.12475,
    "h": 272
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#2B3781
secondary
#AFA359
accent
#C64EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2B3781

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

Preview Lab → · Contrast checker → · Palette generator →

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