#2B247A#2B247A

#2B247A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.140 H 279.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2B247A
RGBrgb(43, 36, 122)
HSLhsl(245, 54%, 31%)
HSVhsv(245, 70%, 48%)
CMYKcmyk(64.8%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.75, 30.66, -47.91)
CIE-LCHlch(20.75, 56.88, 302.61°)
OKLaboklab(32.98% 0.0221 -0.1381)
OKLCHoklch(32.98% 0.14 279.1)
XYZxyz(5.1389, 3.1801, 18.7516)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B247A #737A24
analogous
#24487A #2B247A #56247A
triadic
#2B247A #7A2B24 #247A2B
tetradic
#2B247A #7A2448 #737A24 #247A56
square
#2B247A #7A2448 #737A24 #247A56
split-complementary
#2B247A #7A5624 #487A24
monochromatic
#0A081B #1A164B #2B247A #3C32A9 #584ECB

Accessibility & contrast

On white

12.84
#2B247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B247A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B247A#FFFFFF#000000##FFFFFF
##2B247A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b247a;
/* rgb */ color: rgb(43, 36, 122);
/* oklch */ color: oklch(33.0% 0.140 279.1);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2b247a',
    950: '#000000',
  },
}
SCSS
$custom: #2b247a;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b247a",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 244.884,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3298,
    "c": 0.13988,
    "h": 279.1
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2B247A
secondary
#A5AC4D
accent
#DE4AD2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B247A

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

Preview Lab → · Contrast checker → · Palette generator →

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