#2B256D#2B256D

#2B256D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.120 H 280.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2B256D
RGBrgb(43, 37, 109)
HSLhsl(245, 49%, 29%)
HSVhsv(245, 66%, 43%)
CMYKcmyk(60.6%, 66.1%, 0%, 57.3%)
CIE-LABlab(19.80, 25.44, -41.10)
CIE-LCHlch(19.80, 48.34, 301.75°)
OKLaboklab(31.92% 0.0227 -0.1181)
OKLCHoklch(31.92% 0.12 280.9)
XYZxyz(4.4173, 2.9406, 14.7998)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B256D #676D25
analogous
#25436D #2B256D #4F256D
triadic
#2B256D #6D2B25 #256D2B
tetradic
#2B256D #6D2543 #676D25 #256D4F
square
#2B256D #6D2543 #676D25 #256D4F
split-complementary
#2B256D #6D4F25 #436D25
monochromatic
#090817 #19153F #2B256D #3D359B #554BC2

Accessibility & contrast

On white

13.22
#2B256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B256D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B256D#FFFFFF#000000##FFFFFF
##2B256D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#053745
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b256d;
/* rgb */ color: rgb(43, 37, 109);
/* oklch */ color: oklch(31.9% 0.120 280.9);
Tailwind
colors: {
  custom: {
    50: '#6c6097',
    500: '#2b256d',
    950: '#000000',
  },
}
SCSS
$custom: #2b256d;
$custom-light: #6c6097;
$custom-dark: #000000;
JSON
{
  "hex": "#2b256d",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 245,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31924,
    "c": 0.1203,
    "h": 280.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2B256D
secondary
#99A04E
accent
#D94FCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B256D

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

Preview Lab → · Contrast checker → · Palette generator →

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