#2B256B#2B256B

#2B256B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.117 H 281.2°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2B256B
RGBrgb(43, 37, 107)
HSLhsl(245, 49%, 28%)
HSVhsv(245, 65%, 42%)
CMYKcmyk(59.8%, 65.4%, 0%, 58%)
CIE-LABlab(19.63, 24.73, -40.09)
CIE-LCHlch(19.63, 47.10, 301.67°)
OKLaboklab(31.74% 0.0229 -0.1152)
OKLCHoklch(31.74% 0.117 281.2)
XYZxyz(4.3108, 2.8980, 14.2393)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B256B #656B25
analogous
#25426B #2B256B #4E256B
triadic
#2B256B #6B2B25 #256B2B
tetradic
#2B256B #6B2542 #656B25 #256B4E
square
#2B256B #6B2542 #656B25 #256B4E
split-complementary
#2B256B #6B4E25 #426B25
monochromatic
#090817 #19153E #2B256B #3D3598 #544AC0

Accessibility & contrast

On white

13.29
#2B256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B256B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B256B#FFFFFF#000000##FFFFFF
##2B256B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#093644
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b256b;
/* rgb */ color: rgb(43, 37, 107);
/* oklch */ color: oklch(31.7% 0.117 281.2);
Tailwind
colors: {
  custom: {
    50: '#6c6096',
    500: '#2b256b',
    950: '#000000',
  },
}
SCSS
$custom: #2b256b;
$custom-light: #6c6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2b256b",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 245.143,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31743,
    "c": 0.11741,
    "h": 281.2
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#2B256B
secondary
#979E4E
accent
#D850CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B256B

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

Preview Lab → · Contrast checker → · Palette generator →

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