#2B3787#2B3787

#2B3787 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.134 H 271.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2B3787
RGBrgb(43, 55, 135)
HSLhsl(232, 52%, 35%)
HSVhsv(232, 68%, 53%)
CMYKcmyk(68.1%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.72, 22.76, -46.36)
CIE-LCHlch(26.72, 51.64, 296.15°)
OKLaboklab(37.71% 0.0045 -0.1334)
OKLCHoklch(37.71% 0.134 271.9)
XYZxyz(6.7342, 4.9946, 23.5261)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3787 #877B2B
analogous
#2B6587 #2B3787 #4D2B87
triadic
#2B3787 #872B37 #37872B
tetradic
#2B3787 #872B65 #877B2B #2B874D
square
#2B3787 #872B65 #877B2B #2B874D
split-complementary
#2B3787 #874D2B #65872B
monochromatic
#0D112A #1C2459 #2B3787 #3A4AB5 #606ECC

Accessibility & contrast

On white

10.51
#2B3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2B3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3787
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3787#FFFFFF#000000##FFFFFF
##2B37871.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b3787;
/* rgb */ color: rgb(43, 55, 135);
/* oklch */ color: oklch(37.7% 0.134 271.9);
Tailwind
colors: {
  custom: {
    50: '#706dab',
    500: '#2b3787',
    950: '#000000',
  },
}
SCSS
$custom: #2b3787;
$custom-light: #706dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3787",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 232.174,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37713,
    "c": 0.13351,
    "h": 271.9
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#2B3787
secondary
#B2A75B
accent
#C94DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2B3787

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

Preview Lab → · Contrast checker → · Palette generator →

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