#2B337F#2B337F

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

Color values

HEX#2B337F
RGBrgb(43, 51, 127)
HSLhsl(234, 49%, 33%)
HSVhsv(234, 66%, 50%)
CMYKcmyk(66.1%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.99, 22.50, -44.16)
CIE-LCHlch(24.99, 49.56, 297.00°)
OKLaboklab(36.22% 0.0081 -0.127)
OKLCHoklch(36.22% 0.127 273.7)
XYZxyz(6.0096, 4.4130, 20.6097)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B337F #7F772B
analogous
#2B5D7F #2B337F #4D2B7F
triadic
#2B337F #7F2B33 #337F2B
tetradic
#2B337F #7F2B5D #7F772B #2B7F4D
square
#2B337F #7F2B5D #7F772B #2B7F4D
split-complementary
#2B337F #7F4D2B #5D7F2B
monochromatic
#0C0E24 #1C2151 #2B337F #3A45AD #5C67C8

Accessibility & contrast

On white

11.15
#2B337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2B337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B337F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B337F#FFFFFF#000000##FFFFFF
##2B337F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b337f;
/* rgb */ color: rgb(43, 51, 127);
/* oklch */ color: oklch(36.2% 0.127 273.7);
Tailwind
colors: {
  custom: {
    50: '#6f6aa5',
    500: '#2b337f',
    950: '#000000',
  },
}
SCSS
$custom: #2b337f;
$custom-light: #6f6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b337f",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 234.286,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.12727,
    "h": 273.7
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#2B337F
secondary
#AEA658
accent
#CC4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B337F

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

Preview Lab → · Contrast checker → · Palette generator →

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