#2D257E#2D257E

#2D257E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.144 H 279.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2D257E
RGBrgb(45, 37, 126)
HSLhsl(245, 55%, 32%)
HSVhsv(245, 71%, 49%)
CMYKcmyk(64.3%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.53, 31.72, -49.17)
CIE-LCHlch(21.53, 58.51, 302.83°)
OKLaboklab(33.7% 0.0235 -0.1417)
OKLCHoklch(33.7% 0.144 279.4)
XYZxyz(5.5085, 3.3870, 20.0981)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D257E #767E25
analogous
#254A7E #2D257E #5A257E
triadic
#2D257E #7E2D25 #257E2D
tetradic
#2D257E #7E254A #767E25 #257E5A
square
#2D257E #7E254A #767E25 #257E5A
split-complementary
#2D257E #7E5A25 #4A7E25
monochromatic
#0B091F #1C174F #2D257E #3E33AD #5C51CC

Accessibility & contrast

On white

12.52
#2D257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D257E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D257E#FFFFFF#000000##FFFFFF
##2D257E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d257e;
/* rgb */ color: rgb(45, 37, 126);
/* oklch */ color: oklch(33.7% 0.144 279.4);
Tailwind
colors: {
  custom: {
    50: '#7160a4',
    500: '#2d257e',
    950: '#000000',
  },
}
SCSS
$custom: #2d257e;
$custom-light: #7160a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d257e",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 245.393,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.14367,
    "h": 279.4
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#2D257E
secondary
#A7B04F
accent
#DE4AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D257E

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

Preview Lab → · Contrast checker → · Palette generator →

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