#2A257E#2A257E

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

Color values

HEX#2A257E
RGBrgb(42, 37, 126)
HSLhsl(243, 55%, 32%)
HSVhsv(243, 71%, 49%)
CMYKcmyk(66.7%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.29, 31.27, -49.58)
CIE-LCHlch(21.29, 58.61, 302.24°)
OKLaboklab(33.46% 0.0193 -0.143)
OKLCHoklch(33.46% 0.144 277.7)
XYZxyz(5.3811, 3.3213, 20.0921)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A257E #797E25
analogous
#254D7E #2A257E #57257E
triadic
#2A257E #7E2A25 #257E2A
tetradic
#2A257E #7E254D #797E25 #257E57
square
#2A257E #7E254D #797E25 #257E57
split-complementary
#2A257E #7E5725 #4D7E25
monochromatic
#0A091F #1A174F #2A257E #3A33AD #5851CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A257E#FFFFFF#000000##FFFFFF
##2A257E1.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)
#003781
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a257e;
/* rgb */ color: rgb(42, 37, 126);
/* oklch */ color: oklch(33.5% 0.144 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f60a4',
    500: '#2a257e',
    950: '#000000',
  },
}
SCSS
$custom: #2a257e;
$custom-light: #6f60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a257e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 243.371,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33463,
    "c": 0.14433,
    "h": 277.7
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#2A257E
secondary
#ABB04F
accent
#DE4AD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A257E

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

Preview Lab → · Contrast checker → · Palette generator →

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