#2D248D#2D248D

#2D248D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 277.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D248D
RGBrgb(45, 36, 141)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(68.1%, 74.5%, 0%, 44.7%)
CIE-LABlab(22.80, 37.43, -56.50)
CIE-LCHlch(22.80, 67.77, 303.52°)
OKLaboklab(35.06% 0.0215 -0.1632)
OKLCHoklch(35.06% 0.165 277.5)
XYZxyz(6.5192, 3.7422, 25.5729)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D248D #848D24
analogous
#24508D #2D248D #62248D
triadic
#2D248D #8D2D24 #248D2D
tetradic
#2D248D #8D2450 #848D24 #248D62
square
#2D248D #8D2450 #848D24 #248D62
split-complementary
#2D248D #8D6224 #508D24
monochromatic
#0E0B2B #1D185C #2D248D #3D30BE #6257D4

Accessibility & contrast

On white

12.01
#2D248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D248D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D248D#FFFFFF#000000##FFFFFF
##2D248D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d248d;
/* rgb */ color: rgb(45, 36, 141);
/* oklch */ color: oklch(35.1% 0.165 277.5);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2d248d',
    950: '#000000',
  },
}
SCSS
$custom: #2d248d;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d248d",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 245.143,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35061,
    "c": 0.1646,
    "h": 277.5
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#2D248D
secondary
#B0B854
accent
#E345D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D248D

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

Preview Lab → · Contrast checker → · Palette generator →

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