#2B337D#2B337D

#2B337D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.124 H 273.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2B337D
RGBrgb(43, 51, 125)
HSLhsl(234, 49%, 33%)
HSVhsv(234, 66%, 49%)
CMYKcmyk(65.6%, 59.2%, 0%, 51%)
CIE-LABlab(24.83, 21.76, -43.16)
CIE-LCHlch(24.83, 48.33, 296.75°)
OKLaboklab(36.05% 0.0081 -0.1241)
OKLCHoklch(36.05% 0.124 273.7)
XYZxyz(5.8805, 4.3614, 19.9300)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B337D #7D752B
analogous
#2B5C7D #2B337D #4C2B7D
triadic
#2B337D #7D2B33 #337D2B
tetradic
#2B337D #7D2B5C #7D752B #2B7D4C
square
#2B337D #7D2B5C #7D752B #2B7D4C
split-complementary
#2B337D #7D4C2B #5C7D2B
monochromatic
#0C0E22 #1B204F #2B337D #3B46AB #5C66C7

Accessibility & contrast

On white

11.22
#2B337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B337D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B337D#FFFFFF#000000##FFFFFF
##2B337D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b337d;
/* rgb */ color: rgb(43, 51, 125);
/* oklch */ color: oklch(36.1% 0.124 273.7);
Tailwind
colors: {
  custom: {
    50: '#6e6aa3',
    500: '#2b337d',
    950: '#000000',
  },
}
SCSS
$custom: #2b337d;
$custom-light: #6e6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b337d",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 234.146,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.12433,
    "h": 273.7
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#2B337D
secondary
#ADA457
accent
#CB4FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B337D

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

Preview Lab → · Contrast checker → · Palette generator →

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