#2D258E#2D258E

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

Color values

HEX#2D258E
RGBrgb(45, 37, 142)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 56%)
CMYKcmyk(68.3%, 73.9%, 0%, 44.3%)
CIE-LABlab(23.11, 37.18, -56.61)
CIE-LCHlch(23.11, 67.72, 303.30°)
OKLaboklab(35.31% 0.0206 -0.1635)
OKLCHoklch(35.31% 0.165 277.2)
XYZxyz(6.6247, 3.8334, 25.9768)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258E #868E25
analogous
#25528E #2D258E #61258E
triadic
#2D258E #8E2D25 #258E2D
tetradic
#2D258E #8E2552 #868E25 #258E61
square
#2D258E #8E2552 #868E25 #258E61
split-complementary
#2D258E #8E6125 #528E25
monochromatic
#0E0C2D #1E185D #2D258E #3C32BF #635AD4

Accessibility & contrast

On white

11.89
#2D258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D258E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258E#FFFFFF#000000##FFFFFF
##2D258E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d258e;
/* rgb */ color: rgb(45, 37, 142);
/* oklch */ color: oklch(35.3% 0.165 277.2);
Tailwind
colors: {
  custom: {
    50: '#7461b0',
    500: '#2d258e',
    950: '#000000',
  },
}
SCSS
$custom: #2d258e;
$custom-light: #7461b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258e",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 244.571,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35314,
    "c": 0.1648,
    "h": 277.2
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D258E

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

Preview Lab → · Contrast checker → · Palette generator →

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