#2B256A#2B256A

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

Color values

HEX#2B256A
RGBrgb(43, 37, 106)
HSLhsl(245, 48%, 28%)
HSVhsv(245, 65%, 42%)
CMYKcmyk(59.4%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.54, 24.38, -39.57)
CIE-LCHlch(19.54, 46.48, 301.63°)
OKLaboklab(31.65% 0.0229 -0.1137)
OKLCHoklch(31.65% 0.116 281.4)
XYZxyz(4.2585, 2.8771, 13.9638)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B256A #646A25
analogous
#25416A #2B256A #4D256A
triadic
#2B256A #6A2B25 #256A2B
tetradic
#2B256A #6A2541 #646A25 #256A4D
square
#2B256A #6A2541 #646A25 #256A4D
split-complementary
#2B256A #6A4D25 #416A25
monochromatic
#090817 #19153D #2B256A #3D3597 #544AC0

Accessibility & contrast

On white

13.33
#2B256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B256A
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B256A#FFFFFF#000000##FFFFFF
##2B256A1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#0A3643
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b256a;
/* rgb */ color: rgb(43, 37, 106);
/* oklch */ color: oklch(31.7% 0.116 281.4);
Tailwind
colors: {
  custom: {
    50: '#6b6095',
    500: '#2b256a',
    950: '#000000',
  },
}
SCSS
$custom: #2b256a;
$custom-light: #6b6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2b256a",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 245.217,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31653,
    "c": 0.11595,
    "h": 281.4
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#2B256A
secondary
#969D4E
accent
#D850CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B256A

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

Preview Lab → · Contrast checker → · Palette generator →

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