#2B257D#2B257D

#2B257D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.143 H 278.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2B257D
RGBrgb(43, 37, 125)
HSLhsl(244, 54%, 32%)
HSVhsv(244, 70%, 49%)
CMYKcmyk(65.6%, 70.4%, 0%, 51%)
CIE-LABlab(21.27, 31.07, -48.96)
CIE-LCHlch(21.27, 57.99, 302.40°)
OKLaboklab(33.44% 0.0208 -0.1412)
OKLCHoklch(33.44% 0.143 278.4)
XYZxyz(5.3583, 3.3170, 19.7559)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B257D #777D25
analogous
#254B7D #2B257D #57257D
triadic
#2B257D #7D2B25 #257D2B
tetradic
#2B257D #7D254B #777D25 #257D57
square
#2B257D #7D254B #777D25 #257D57
split-complementary
#2B257D #7D5725 #4B7D25
monochromatic
#0B091F #1B174E #2B257D #3B33AC #5951CB

Accessibility & contrast

On white

12.62
#2B257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B257D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B257D#FFFFFF#000000##FFFFFF
##2B257D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b257d;
/* rgb */ color: rgb(43, 37, 125);
/* oklch */ color: oklch(33.4% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f60a4',
    500: '#2b257d',
    950: '#000000',
  },
}
SCSS
$custom: #2b257d;
$custom-light: #6f60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b257d",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 244.091,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33443,
    "c": 0.14274,
    "h": 278.4
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#2B257D
secondary
#A9AF4F
accent
#DE4AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B257D

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

Preview Lab → · Contrast checker → · Palette generator →

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