#2B337A#2B337A

#2B337A is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.120 H 273.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2B337A
RGBrgb(43, 51, 122)
HSLhsl(234, 48%, 32%)
HSVhsv(234, 65%, 48%)
CMYKcmyk(64.8%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.59, 20.64, -41.65)
CIE-LCHlch(24.59, 46.48, 296.36°)
OKLaboklab(35.8% 0.008 -0.1196)
OKLCHoklch(35.8% 0.12 273.8)
XYZxyz(5.6918, 4.2859, 18.9359)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B337A #7A722B
analogous
#2B5B7A #2B337A #4B2B7A
triadic
#2B337A #7A2B33 #337A2B
tetradic
#2B337A #7A2B5B #7A722B #2B7A4B
square
#2B337A #7A2B5B #7A722B #2B7A4B
split-complementary
#2B337A #7A4B2B #5B7A2B
monochromatic
#0B0D1F #1B204D #2B337A #3B46A7 #5A65C5

Accessibility & contrast

On white

11.31
#2B337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B337A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B337A#FFFFFF#000000##FFFFFF
##2B337A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b337a;
/* rgb */ color: rgb(43, 51, 122);
/* oklch */ color: oklch(35.8% 0.120 273.8);
Tailwind
colors: {
  custom: {
    50: '#6d6aa1',
    500: '#2b337a',
    950: '#000000',
  },
}
SCSS
$custom: #2b337a;
$custom-light: #6d6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b337a",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 233.924,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35803,
    "c": 0.1199,
    "h": 273.8
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#2B337A
secondary
#ABA256
accent
#CA50D7
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2B337A

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

Preview Lab → · Contrast checker → · Palette generator →

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