#2B337B#2B337B

#2B337B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.121 H 273.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2B337B
RGBrgb(43, 51, 123)
HSLhsl(234, 48%, 33%)
HSVhsv(234, 65%, 48%)
CMYKcmyk(65%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.67, 21.01, -42.15)
CIE-LCHlch(24.67, 47.10, 296.50°)
OKLaboklab(35.89% 0.008 -0.1211)
OKLCHoklch(35.89% 0.121 273.8)
XYZxyz(5.7541, 4.3108, 19.2639)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B337B #7B732B
analogous
#2B5B7B #2B337B #4B2B7B
triadic
#2B337B #7B2B33 #337B2B
tetradic
#2B337B #7B2B5B #7B732B #2B7B4B
square
#2B337B #7B2B5B #7B732B #2B7B4B
split-complementary
#2B337B #7B4B2B #5B7B2B
monochromatic
#0B0D20 #1B204E #2B337B #3B46A8 #5B65C6

Accessibility & contrast

On white

11.28
#2B337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B337B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B337B#FFFFFF#000000##FFFFFF
##2B337B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b337b;
/* rgb */ color: rgb(43, 51, 123);
/* oklch */ color: oklch(35.9% 0.121 273.8);
Tailwind
colors: {
  custom: {
    50: '#6e6aa2',
    500: '#2b337b',
    950: '#000000',
  },
}
SCSS
$custom: #2b337b;
$custom-light: #6e6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b337b",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 234,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.12138,
    "h": 273.8
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#2B337B
secondary
#ABA356
accent
#CA50D8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2B337B

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

Preview Lab → · Contrast checker → · Palette generator →

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