#2B2D72#2B2D72

#2B2D72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.116 H 277.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2B2D72
RGBrgb(43, 45, 114)
HSLhsl(238, 45%, 31%)
HSVhsv(238, 62%, 45%)
CMYKcmyk(62.3%, 60.5%, 0%, 55.3%)
CIE-LABlab(22.32, 21.81, -40.24)
CIE-LCHlch(22.32, 45.77, 298.46°)
OKLaboklab(33.91% 0.0141 -0.1155)
OKLCHoklch(33.91% 0.116 277)
XYZxyz(4.9709, 3.6049, 16.3502)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2D72 #72702B
analogous
#2B5072 #2B2D72 #4C2B72
triadic
#2B2D72 #722B2D #2D722B
tetradic
#2B2D72 #722B50 #72702B #2B724C
square
#2B2D72 #722B50 #72702B #2B724C
split-complementary
#2B2D72 #724C2B #50722B
monochromatic
#090A19 #1A1B46 #2B2D72 #3C3F9E #585AC0

Accessibility & contrast

On white

12.20
#2B2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B2D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2D72
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2D72#FFFFFF#000000##FFFFFF
##2B2D721.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2d72;
/* rgb */ color: rgb(43, 45, 114);
/* oklch */ color: oklch(33.9% 0.116 277.0);
Tailwind
colors: {
  custom: {
    50: '#6c669b',
    500: '#2b2d72',
    950: '#000000',
  },
}
SCSS
$custom: #2b2d72;
$custom-light: #6c669b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2d72",
  "rgb": {
    "r": 43,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 238.31,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33908,
    "c": 0.1164,
    "h": 277
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#2B2D72
secondary
#A4A255
accent
#D153D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2B2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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