#2B256F#2B256F

#2B256F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.123 H 280.5°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2B256F
RGBrgb(43, 37, 111)
HSLhsl(245, 50%, 29%)
HSVhsv(245, 67%, 44%)
CMYKcmyk(61.3%, 66.7%, 0%, 56.5%)
CIE-LABlab(19.98, 26.15, -42.11)
CIE-LCHlch(19.98, 49.57, 301.84°)
OKLaboklab(32.11% 0.0225 -0.1211)
OKLCHoklch(32.11% 0.123 280.5)
XYZxyz(4.5262, 2.9841, 15.3733)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B256F #696F25
analogous
#25446F #2B256F #50256F
triadic
#2B256F #6F2B25 #256F2B
tetradic
#2B256F #6F2544 #696F25 #256F50
square
#2B256F #6F2544 #696F25 #256F50
split-complementary
#2B256F #6F5025 #446F25
monochromatic
#090817 #191641 #2B256F #3D349D #554BC3

Accessibility & contrast

On white

13.15
#2B256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B256F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B256F#FFFFFF#000000##FFFFFF
##2B256F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#023746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b256f;
/* rgb */ color: rgb(43, 37, 111);
/* oklch */ color: oklch(32.1% 0.123 280.5);
Tailwind
colors: {
  custom: {
    50: '#6c6099',
    500: '#2b256f',
    950: '#000000',
  },
}
SCSS
$custom: #2b256f;
$custom-light: #6c6099;
$custom-dark: #000000;
JSON
{
  "hex": "#2b256f",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 244.865,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32108,
    "c": 0.12318,
    "h": 280.5
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#2B256F
secondary
#9BA24E
accent
#DA4ECE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B256F

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

Preview Lab → · Contrast checker → · Palette generator →

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