#2D257A#2D257A

#2D257A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.138 H 280.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2D257A
RGBrgb(45, 37, 122)
HSLhsl(246, 53%, 31%)
HSVhsv(246, 70%, 48%)
CMYKcmyk(63.1%, 69.7%, 0%, 52.2%)
CIE-LABlab(21.15, 30.34, -47.24)
CIE-LCHlch(21.15, 56.15, 302.71°)
OKLaboklab(33.31% 0.0241 -0.1361)
OKLCHoklch(33.31% 0.138 280)
XYZxyz(5.2555, 3.2858, 18.7659)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D257A #727A25
analogous
#25477A #2D257A #57257A
triadic
#2D257A #7A2D25 #257A2D
tetradic
#2D257A #7A2547 #727A25 #257A57
square
#2D257A #7A2547 #727A25 #257A57
split-complementary
#2D257A #7A5725 #477A25
monochromatic
#0A091C #1C174B #2D257A #3E33A9 #5B50CA

Accessibility & contrast

On white

12.67
#2D257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D257A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D257A#FFFFFF#000000##FFFFFF
##2D257A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d257a;
/* rgb */ color: rgb(45, 37, 122);
/* oklch */ color: oklch(33.3% 0.138 280.0);
Tailwind
colors: {
  custom: {
    50: '#7060a1',
    500: '#2d257a',
    950: '#000000',
  },
}
SCSS
$custom: #2d257a;
$custom-light: #7060a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d257a",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 245.647,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33313,
    "c": 0.13821,
    "h": 280
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#2D257A
secondary
#A3AC4E
accent
#DD4BCF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D257A

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

Preview Lab → · Contrast checker → · Palette generator →

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