#2D257C#2D257C

#2D257C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.141 H 279.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2D257C
RGBrgb(45, 37, 124)
HSLhsl(246, 54%, 32%)
HSVhsv(246, 70%, 49%)
CMYKcmyk(63.7%, 70.2%, 0%, 51.4%)
CIE-LABlab(21.34, 31.03, -48.21)
CIE-LCHlch(21.34, 57.33, 302.77°)
OKLaboklab(33.51% 0.0238 -0.1389)
OKLCHoklch(33.51% 0.141 279.7)
XYZxyz(5.3807, 3.3359, 19.4252)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D257C #747C25
analogous
#25497C #2D257C #59257C
triadic
#2D257C #7C2D25 #257C2D
tetradic
#2D257C #7C2549 #747C25 #257C59
square
#2D257C #7C2549 #747C25 #257C59
split-complementary
#2D257C #7C5925 #497C25
monochromatic
#0B091E #1C174D #2D257C #3E33AB #5C50CB

Accessibility & contrast

On white

12.60
#2D257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D257C
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D257C#FFFFFF#000000##FFFFFF
##2D257C1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d257c;
/* rgb */ color: rgb(45, 37, 124);
/* oklch */ color: oklch(33.5% 0.141 279.7);
Tailwind
colors: {
  custom: {
    50: '#7060a3',
    500: '#2d257c',
    950: '#000000',
  },
}
SCSS
$custom: #2d257c;
$custom-light: #7060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d257c",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 245.517,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.14095,
    "h": 279.7
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#2D257C
secondary
#A5AE4F
accent
#DD4AD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D257C

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

Preview Lab → · Contrast checker → · Palette generator →

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