#2A257A#2A257A

#2A257A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.139 H 278.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2A257A
RGBrgb(42, 37, 122)
HSLhsl(244, 53%, 31%)
HSVhsv(244, 70%, 48%)
CMYKcmyk(65.6%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.90, 29.86, -47.66)
CIE-LCHlch(20.90, 56.24, 302.07°)
OKLaboklab(33.07% 0.0199 -0.1374)
OKLCHoklch(33.07% 0.139 278.2)
XYZxyz(5.1281, 3.2201, 18.7599)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A257A #757A25
analogous
#254A7A #2A257A #54257A
triadic
#2A257A #7A2A25 #257A2A
tetradic
#2A257A #7A254A #757A25 #257A54
square
#2A257A #7A254A #757A25 #257A54
split-complementary
#2A257A #7A5425 #4A7A25
monochromatic
#0A091C #1A174B #2A257A #3A33A9 #5750CA

Accessibility & contrast

On white

12.77
#2A257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A257A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A257A#FFFFFF#000000##FFFFFF
##2A257A1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a257a;
/* rgb */ color: rgb(42, 37, 122);
/* oklch */ color: oklch(33.1% 0.139 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e60a1',
    500: '#2a257a',
    950: '#000000',
  },
}
SCSS
$custom: #2a257a;
$custom-light: #6e60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a257a",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 243.529,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.13885,
    "h": 278.2
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#2A257A
secondary
#A7AC4E
accent
#DD4BD4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A257A

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

Preview Lab → · Contrast checker → · Palette generator →

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