#2D247C#2D247C

#2D247C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.142 H 280.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2D247C
RGBrgb(45, 36, 124)
HSLhsl(246, 55%, 31%)
HSVhsv(246, 71%, 49%)
CMYKcmyk(63.7%, 71%, 0%, 51.4%)
CIE-LABlab(21.11, 31.66, -48.58)
CIE-LCHlch(21.11, 57.99, 303.09°)
OKLaboklab(33.34% 0.0246 -0.14)
OKLCHoklch(33.34% 0.142 280)
XYZxyz(5.3500, 3.2745, 19.4150)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D247C #737C24
analogous
#24477C #2D247C #59247C
triadic
#2D247C #7C2D24 #247C2D
tetradic
#2D247C #7C2447 #737C24 #247C59
square
#2D247C #7C2447 #737C24 #247C59
split-complementary
#2D247C #7C5924 #477C24
monochromatic
#0B081D #1C164D #2D247C #3E32AB #5B4FCC

Accessibility & contrast

On white

12.69
#2D247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D247C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D247C#FFFFFF#000000##FFFFFF
##2D247C1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d247c;
/* rgb */ color: rgb(45, 36, 124);
/* oklch */ color: oklch(33.3% 0.142 280.0);
Tailwind
colors: {
  custom: {
    50: '#7060a3',
    500: '#2d247c',
    950: '#000000',
  },
}
SCSS
$custom: #2d247c;
$custom-light: #7060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d247c",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 246.136,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.14219,
    "h": 280
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#2D247C
secondary
#A4AE4D
accent
#DE49CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D247C

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

Preview Lab → · Contrast checker → · Palette generator →

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