#2D248C#2D248C

#2D248C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.163 H 277.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2D248C
RGBrgb(45, 36, 140)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(67.9%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.70, 37.09, -56.05)
CIE-LCHlch(22.70, 67.21, 303.50°)
OKLaboklab(34.96% 0.0217 -0.1619)
OKLCHoklch(34.96% 0.163 277.6)
XYZxyz(6.4452, 3.7125, 25.1828)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D248C #838C24
analogous
#244F8C #2D248C #61248C
triadic
#2D248C #8C2D24 #248C2D
tetradic
#2D248C #8C244F #838C24 #248C61
square
#2D248C #8C244F #838C24 #248C61
split-complementary
#2D248C #8C6124 #4F8C24
monochromatic
#0E0B2B #1D175B #2D248C #3D31BD #6257D4

Accessibility & contrast

On white

12.05
#2D248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D248C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D248C#FFFFFF#000000##FFFFFF
##2D248C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d248c;
/* rgb */ color: rgb(45, 36, 140);
/* oklch */ color: oklch(35.0% 0.163 277.6);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2d248c',
    950: '#000000',
  },
}
SCSS
$custom: #2d248c;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d248c",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 245.192,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.16331,
    "h": 277.6
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#2D248C
secondary
#AFB854
accent
#E246D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D248C

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

Preview Lab → · Contrast checker → · Palette generator →

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