#2B247B#2B247B

#2B247B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.141 H 278.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2B247B
RGBrgb(43, 36, 123)
HSLhsl(245, 55%, 31%)
HSVhsv(245, 71%, 48%)
CMYKcmyk(65%, 70.7%, 0%, 51.8%)
CIE-LABlab(20.85, 31.00, -48.39)
CIE-LCHlch(20.85, 57.47, 302.65°)
OKLaboklab(33.08% 0.022 -0.1395)
OKLCHoklch(33.08% 0.141 278.9)
XYZxyz(5.2011, 3.2050, 19.0796)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B247B #747B24
analogous
#24487B #2B247B #56247B
triadic
#2B247B #7B2B24 #247B2B
tetradic
#2B247B #7B2448 #747B24 #247B56
square
#2B247B #7B2448 #747B24 #247B56
split-complementary
#2B247B #7B5624 #487B24
monochromatic
#0A081C #1A164C #2B247B #3C32AA #584ECB

Accessibility & contrast

On white

12.80
#2B247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B247B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B247B#FFFFFF#000000##FFFFFF
##2B247B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b247b;
/* rgb */ color: rgb(43, 36, 123);
/* oklch */ color: oklch(33.1% 0.141 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f5fa2',
    500: '#2b247b',
    950: '#000000',
  },
}
SCSS
$custom: #2b247b;
$custom-light: #6f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b247b",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 244.828,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33078,
    "c": 0.14125,
    "h": 278.9
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#2B247B
secondary
#A6AD4D
accent
#DE4AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B247B

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

Preview Lab → · Contrast checker → · Palette generator →

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