#2B255C#2B255C

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

Color values

HEX#2B255C
RGBrgb(43, 37, 92)
HSLhsl(247, 43%, 25%)
HSVhsv(247, 60%, 36%)
CMYKcmyk(53.3%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.41, 19.44, -32.21)
CIE-LCHlch(18.41, 37.63, 301.11°)
OKLaboklab(30.45% 0.0233 -0.092)
OKLCHoklch(30.45% 0.095 284.2)
XYZxyz(3.5890, 2.6093, 10.4377)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B255C #565C25
analogous
#253B5C #2B255C #46255C
triadic
#2B255C #5C2B25 #255C2B
tetradic
#2B255C #5C253B #565C25 #255C46
square
#2B255C #5C253B #565C25 #255C46
split-complementary
#2B255C #5C4625 #3B5C25
monochromatic
#0A0916 #171330 #2B255C #3F3788 #5448B3

Accessibility & contrast

On white

13.80
#2B255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B255C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B255C#FFFFFF#000000##FFFFFF
##2B255C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042F5E
Deuteranopia (green-blind)
#012B5B
Tritanopia (blue-blind)
#19313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b255c;
/* rgb */ color: rgb(43, 37, 92);
/* oklch */ color: oklch(30.5% 0.095 284.2);
Tailwind
colors: {
  custom: {
    50: '#695f8b',
    500: '#2b255c',
    950: '#000000',
  },
}
SCSS
$custom: #2b255c;
$custom-light: #695f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b255c",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 246.545,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30454,
    "c": 0.09489,
    "h": 284.2
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#2B255C
secondary
#888F4D
accent
#D255C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2B255C

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

Preview Lab → · Contrast checker → · Palette generator →

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