#2D248F#2D248F

#2D248F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.167 H 277.2°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2D248F
RGBrgb(45, 36, 143)
HSLhsl(245, 60%, 35%)
HSVhsv(245, 75%, 56%)
CMYKcmyk(68.5%, 74.8%, 0%, 43.9%)
CIE-LABlab(23.01, 38.10, -57.40)
CIE-LCHlch(23.01, 68.90, 303.57°)
OKLaboklab(35.27% 0.0211 -0.1658)
OKLCHoklch(35.27% 0.167 277.2)
XYZxyz(6.6694, 3.8022, 26.3637)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D248F #868F24
analogous
#24508F #2D248F #63248F
triadic
#2D248F #8F2D24 #248F2D
tetradic
#2D248F #8F2450 #868F24 #248F63
square
#2D248F #8F2450 #868F24 #248F63
split-complementary
#2D248F #8F6324 #508F24
monochromatic
#0E0B2D #1E185E #2D248F #3C30C0 #6358D5

Accessibility & contrast

On white

11.93
#2D248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D248F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D248F#FFFFFF#000000##FFFFFF
##2D248F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d248f;
/* rgb */ color: rgb(45, 36, 143);
/* oklch */ color: oklch(35.3% 0.167 277.2);
Tailwind
colors: {
  custom: {
    50: '#7460b1',
    500: '#2d248f',
    950: '#000000',
  },
}
SCSS
$custom: #2d248f;
$custom-light: #7460b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d248f",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 245.047,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35269,
    "c": 0.16715,
    "h": 277.2
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#2D248F
secondary
#B1B955
accent
#E345D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D248F

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

Preview Lab → · Contrast checker → · Palette generator →

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