#2D258F#2D258F

#2D258F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.166 H 277.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2D258F
RGBrgb(45, 37, 143)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 56%)
CMYKcmyk(68.5%, 74.1%, 0%, 43.9%)
CIE-LABlab(23.22, 37.52, -57.06)
CIE-LCHlch(23.22, 68.29, 303.32°)
OKLaboklab(35.42% 0.0204 -0.1648)
OKLCHoklch(35.42% 0.166 277.1)
XYZxyz(6.7001, 3.8636, 26.3739)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258F #878F25
analogous
#25528F #2D258F #62258F
triadic
#2D258F #8F2D25 #258F2D
tetradic
#2D258F #8F2552 #878F25 #258F62
square
#2D258F #8F2552 #878F25 #258F62
split-complementary
#2D258F #8F6225 #528F25
monochromatic
#0E0C2E #1E185E #2D258F #3C32C0 #635AD4

Accessibility & contrast

On white

11.85
#2D258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D258F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258F#FFFFFF#000000##FFFFFF
##2D258F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d258f;
/* rgb */ color: rgb(45, 37, 143);
/* oklch */ color: oklch(35.4% 0.166 277.1);
Tailwind
colors: {
  custom: {
    50: '#7461b1',
    500: '#2d258f',
    950: '#000000',
  },
}
SCSS
$custom: #2d258f;
$custom-light: #7461b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258f",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 244.528,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35418,
    "c": 0.16608,
    "h": 277.1
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#2D258F
secondary
#B2B957
accent
#E246D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D258F

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

Preview Lab → · Contrast checker → · Palette generator →

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