#2B247C#2B247C

#2B247C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.143 H 278.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2B247C
RGBrgb(43, 36, 124)
HSLhsl(245, 55%, 31%)
HSVhsv(245, 71%, 49%)
CMYKcmyk(65.3%, 71%, 0%, 51.4%)
CIE-LABlab(20.94, 31.35, -48.87)
CIE-LCHlch(20.94, 58.06, 302.68°)
OKLaboklab(33.18% 0.0218 -0.1409)
OKLCHoklch(33.18% 0.143 278.8)
XYZxyz(5.2641, 3.2302, 19.4110)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B247C #757C24
analogous
#24497C #2B247C #57247C
triadic
#2B247C #7C2B24 #247C2B
tetradic
#2B247C #7C2449 #757C24 #247C57
square
#2B247C #7C2449 #757C24 #247C57
split-complementary
#2B247C #7C5724 #497C24
monochromatic
#0A081D #1B164D #2B247C #3B32AB #594FCC

Accessibility & contrast

On white

12.76
#2B247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B247C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B247C#FFFFFF#000000##FFFFFF
##2B247C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b247c;
/* rgb */ color: rgb(43, 36, 124);
/* oklch */ color: oklch(33.2% 0.143 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f5fa3',
    500: '#2b247c',
    950: '#000000',
  },
}
SCSS
$custom: #2b247c;
$custom-light: #6f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b247c",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 244.773,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33177,
    "c": 0.14261,
    "h": 278.8
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#2B247C
secondary
#A7AE4D
accent
#DE49D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B247C

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

Preview Lab → · Contrast checker → · Palette generator →

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