#2B245C#2B245C

#2B245C is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.3% C 0.096 H 284.7°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2B245C
RGBrgb(43, 36, 92)
HSLhsl(248, 44%, 25%)
HSVhsv(248, 61%, 36%)
CMYKcmyk(53.3%, 60.9%, 0%, 63.9%)
CIE-LABlab(18.13, 20.14, -32.65)
CIE-LCHlch(18.13, 38.36, 301.66°)
OKLaboklab(30.25% 0.0245 -0.0933)
OKLCHoklch(30.25% 0.096 284.7)
XYZxyz(3.5583, 2.5479, 10.4274)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B245C #555C24
analogous
#24395C #2B245C #47245C
triadic
#2B245C #5C2B24 #245C2B
tetradic
#2B245C #5C2439 #555C24 #245C47
square
#2B245C #5C2439 #555C24 #245C47
split-complementary
#2B245C #5C4724 #395C24
monochromatic
#0A0916 #161330 #2B245C #403588 #5446B4

Accessibility & contrast

On white

13.91
#2B245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B245C
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B245C#FFFFFF#000000##FFFFFF
##2B245C1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#19313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b245c;
/* rgb */ color: rgb(43, 36, 92);
/* oklch */ color: oklch(30.3% 0.096 284.7);
Tailwind
colors: {
  custom: {
    50: '#695f8b',
    500: '#2b245c',
    950: '#000000',
  },
}
SCSS
$custom: #2b245c;
$custom-light: #695f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b245c",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 247.5,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.09647,
    "h": 284.7
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#2B245C
secondary
#87904C
accent
#D354C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2B245C

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

Preview Lab → · Contrast checker → · Palette generator →

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