#2D247E#2D247E

#2D247E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.145 H 279.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2D247E
RGBrgb(45, 36, 126)
HSLhsl(246, 56%, 32%)
HSVhsv(246, 71%, 49%)
CMYKcmyk(64.3%, 71.4%, 0%, 50.6%)
CIE-LABlab(21.30, 32.34, -49.54)
CIE-LCHlch(21.30, 59.16, 303.14°)
OKLaboklab(33.54% 0.0243 -0.1428)
OKLCHoklch(33.54% 0.145 279.7)
XYZxyz(5.4778, 3.3256, 20.0879)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D247E #757E24
analogous
#24487E #2D247E #5A247E
triadic
#2D247E #7E2D24 #247E2D
tetradic
#2D247E #7E2448 #757E24 #247E5A
square
#2D247E #7E2448 #757E24 #247E5A
split-complementary
#2D247E #7E5A24 #487E24
monochromatic
#0B091F #1C164E #2D247E #3E32AE #5C50CD

Accessibility & contrast

On white

12.61
#2D247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D247E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D247E#FFFFFF#000000##FFFFFF
##2D247E1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d247e;
/* rgb */ color: rgb(45, 36, 126);
/* oklch */ color: oklch(33.5% 0.145 279.7);
Tailwind
colors: {
  custom: {
    50: '#7160a4',
    500: '#2d247e',
    950: '#000000',
  },
}
SCSS
$custom: #2d247e;
$custom-light: #7160a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d247e",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 246,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33537,
    "c": 0.14488,
    "h": 279.7
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#2D247E
secondary
#A6B04E
accent
#DF49D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D247E

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

Preview Lab → · Contrast checker → · Palette generator →

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