#2D247A#2D247A

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

Color values

HEX#2D247A
RGBrgb(45, 36, 122)
HSLhsl(246, 54%, 31%)
HSVhsv(246, 70%, 48%)
CMYKcmyk(63.1%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.92, 30.97, -47.62)
CIE-LCHlch(20.92, 56.81, 303.04°)
OKLaboklab(33.15% 0.025 -0.1372)
OKLCHoklch(33.15% 0.139 280.3)
XYZxyz(5.2248, 3.2244, 18.7556)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D247A #717A24
analogous
#24467A #2D247A #58247A
triadic
#2D247A #7A2D24 #247A2D
tetradic
#2D247A #7A2446 #717A24 #247A58
square
#2D247A #7A2446 #717A24 #247A58
split-complementary
#2D247A #7A5824 #467A24
monochromatic
#0A081B #1C164B #2D247A #3E32A9 #5B4ECB

Accessibility & contrast

On white

12.77
#2D247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D247A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D247A#FFFFFF#000000##FFFFFF
##2D247A1.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d247a;
/* rgb */ color: rgb(45, 36, 122);
/* oklch */ color: oklch(33.1% 0.139 280.3);
Tailwind
colors: {
  custom: {
    50: '#7060a1',
    500: '#2d247a',
    950: '#000000',
  },
}
SCSS
$custom: #2d247a;
$custom-light: #7060a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d247a",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 246.279,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.13947,
    "h": 280.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#2D247A
secondary
#A3AC4D
accent
#DE4ACE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D247A

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

Preview Lab → · Contrast checker → · Palette generator →

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