#2B255D#2B255D

#2B255D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.5% C 0.096 H 284.0°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2B255D
RGBrgb(43, 37, 93)
HSLhsl(246, 43%, 25%)
HSVhsv(246, 60%, 36%)
CMYKcmyk(53.8%, 60.2%, 0%, 63.5%)
CIE-LABlab(18.48, 19.79, -32.75)
CIE-LCHlch(18.48, 38.27, 301.15°)
OKLaboklab(30.54% 0.0233 -0.0936)
OKLCHoklch(30.54% 0.096 284)
XYZxyz(3.6330, 2.6269, 10.6694)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B255D #575D25
analogous
#253B5D #2B255D #47255D
triadic
#2B255D #5D2B25 #255D2B
tetradic
#2B255D #5D253B #575D25 #255D47
square
#2B255D #5D253B #575D25 #255D47
split-complementary
#2B255D #5D4725 #3B5D25
monochromatic
#0A0916 #171431 #2B255D #3F3689 #5348B5

Accessibility & contrast

On white

13.77
#2B255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B255D
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B255D#FFFFFF#000000##FFFFFF
##2B255D1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#18323D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b255d;
/* rgb */ color: rgb(43, 37, 93);
/* oklch */ color: oklch(30.5% 0.096 284.0);
Tailwind
colors: {
  custom: {
    50: '#695f8b',
    500: '#2b255d',
    950: '#000000',
  },
}
SCSS
$custom: #2b255d;
$custom-light: #695f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b255d",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 246.429,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30536,
    "c": 0.09644,
    "h": 284
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#2B255D
secondary
#89904D
accent
#D355C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B255D

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

Preview Lab → · Contrast checker → · Palette generator →

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