#2D248B#2D248B

#2D248B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.162 H 277.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2D248B
RGBrgb(45, 36, 139)
HSLhsl(245, 59%, 34%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(67.6%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.60, 36.76, -55.59)
CIE-LCHlch(22.60, 66.64, 303.47°)
OKLaboklab(34.85% 0.0219 -0.1605)
OKLCHoklch(34.85% 0.162 277.8)
XYZxyz(6.3718, 3.6832, 24.7962)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D248B #828B24
analogous
#244F8B #2D248B #61248B
triadic
#2D248B #8B2D24 #248B2D
tetradic
#2D248B #8B244F #828B24 #248B61
square
#2D248B #8B244F #828B24 #248B61
split-complementary
#2D248B #8B6124 #4F8B24
monochromatic
#0E0B2A #1D175A #2D248B #3D31BC #6156D3

Accessibility & contrast

On white

12.09
#2D248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D248B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D248B#FFFFFF#000000##FFFFFF
##2D248B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d248b;
/* rgb */ color: rgb(45, 36, 139);
/* oklch */ color: oklch(34.9% 0.162 277.8);
Tailwind
colors: {
  custom: {
    50: '#7360ae',
    500: '#2d248b',
    950: '#000000',
  },
}
SCSS
$custom: #2d248b;
$custom-light: #7360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d248b",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 245.243,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34853,
    "c": 0.16202,
    "h": 277.8
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#2D248B
secondary
#AFB753
accent
#E246D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D248B

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

Preview Lab → · Contrast checker → · Palette generator →

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