#2D247F#2D247F

#2D247F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.146 H 279.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#2D247F
RGBrgb(45, 36, 127)
HSLhsl(246, 56%, 32%)
HSVhsv(246, 72%, 50%)
CMYKcmyk(64.6%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.40, 32.69, -50.01)
CIE-LCHlch(21.40, 59.75, 303.17°)
OKLaboklab(33.64% 0.0241 -0.1442)
OKLCHoklch(33.64% 0.146 279.5)
XYZxyz(5.5426, 3.3515, 20.4294)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D247F #767F24
analogous
#24497F #2D247F #5B247F
triadic
#2D247F #7F2D24 #247F2D
tetradic
#2D247F #7F2449 #767F24 #247F5B
square
#2D247F #7F2449 #767F24 #247F5B
split-complementary
#2D247F #7F5B24 #497F24
monochromatic
#0B0920 #1C164F #2D247F #3E32AF #5C50CD

Accessibility & contrast

On white

12.57
#2D247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D247F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D247F#FFFFFF#000000##FFFFFF
##2D247F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d247f;
/* rgb */ color: rgb(45, 36, 127);
/* oklch */ color: oklch(33.6% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#7160a5',
    500: '#2d247f',
    950: '#000000',
  },
}
SCSS
$custom: #2d247f;
$custom-light: #7160a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d247f",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 245.934,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33636,
    "c": 0.14623,
    "h": 279.5
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D247F

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

Preview Lab → · Contrast checker → · Palette generator →

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