#2D247B#2D247B

#2D247B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.141 H 280.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2D247B
RGBrgb(45, 36, 123)
HSLhsl(246, 55%, 31%)
HSVhsv(246, 71%, 48%)
CMYKcmyk(63.4%, 70.7%, 0%, 51.8%)
CIE-LABlab(21.02, 31.32, -48.11)
CIE-LCHlch(21.02, 57.40, 303.06°)
OKLaboklab(33.24% 0.0248 -0.1386)
OKLCHoklch(33.24% 0.141 280.1)
XYZxyz(5.2871, 3.2493, 19.0836)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D247B #727B24
analogous
#24467B #2D247B #58247B
triadic
#2D247B #7B2D24 #247B2D
tetradic
#2D247B #7B2446 #727B24 #247B58
square
#2D247B #7B2446 #727B24 #247B58
split-complementary
#2D247B #7B5824 #467B24
monochromatic
#0A081C #1C164C #2D247B #3E32AA #5B4ECB

Accessibility & contrast

On white

12.73
#2D247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D247B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D247B#FFFFFF#000000##FFFFFF
##2D247B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d247b;
/* rgb */ color: rgb(45, 36, 123);
/* oklch */ color: oklch(33.2% 0.141 280.1);
Tailwind
colors: {
  custom: {
    50: '#7060a2',
    500: '#2d247b',
    950: '#000000',
  },
}
SCSS
$custom: #2d247b;
$custom-light: #7060a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d247b",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 246.207,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.14083,
    "h": 280.1
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#2D247B
secondary
#A3AD4D
accent
#DE4ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D247B

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

Preview Lab → · Contrast checker → · Palette generator →

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