#2A2D8F#2A2D8F

#2A2D8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.158 H 274.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2A2D8F
RGBrgb(42, 45, 143)
HSLhsl(238, 55%, 36%)
HSVhsv(238, 71%, 56%)
CMYKcmyk(70.6%, 68.5%, 0%, 43.9%)
CIE-LABlab(24.80, 32.20, -54.46)
CIE-LCHlch(24.80, 63.27, 300.60°)
OKLaboklab(36.5% 0.0111 -0.1573)
OKLCHoklch(36.5% 0.158 274)
XYZxyz(6.8495, 4.3515, 26.4602)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D8F #8F8C2A
analogous
#2A608F #2A2D8F #5A2A8F
triadic
#2A2D8F #8F2A2D #2D8F2A
tetradic
#2A2D8F #8F2A60 #8F8C2A #2A8F5A
square
#2A2D8F #8F2A60 #8F8C2A #2A8F5A
split-complementary
#2A2D8F #8F5A2A #608F2A
monochromatic
#0E0F30 #1C1E60 #2A2D8F #383CBE #6266D1

Accessibility & contrast

On white

11.23
#2A2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D8F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D8F#FFFFFF#000000##FFFFFF
##2A2D8F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2d8f;
/* rgb */ color: rgb(42, 45, 143);
/* oklch */ color: oklch(36.5% 0.158 274.0);
Tailwind
colors: {
  custom: {
    50: '#7266b1',
    500: '#2a2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d8f;
$custom-light: #7266b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d8f",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 238.218,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36502,
    "c": 0.15771,
    "h": 274
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#2A2D8F
secondary
#B7B45E
accent
#DA4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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