#2D2A8F#2D2A8F

#2D2A8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.160 H 276.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2D2A8F
RGBrgb(45, 42, 143)
HSLhsl(242, 55%, 36%)
HSVhsv(242, 71%, 56%)
CMYKcmyk(68.5%, 70.6%, 0%, 43.9%)
CIE-LABlab(24.31, 34.49, -55.26)
CIE-LCHlch(24.31, 65.14, 301.97°)
OKLaboklab(36.2% 0.017 -0.1596)
OKLCHoklch(36.2% 0.16 276.1)
XYZxyz(6.8665, 4.1964, 26.4294)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A8F #8C8F2A
analogous
#2A5A8F #2D2A8F #602A8F
triadic
#2D2A8F #8F2D2A #2A8F2D
tetradic
#2D2A8F #8F2A5A #8C8F2A #2A8F60
square
#2D2A8F #8F2A5A #8C8F2A #2A8F60
split-complementary
#2D2A8F #8F602A #5A8F2A
monochromatic
#0F0E30 #1E1C60 #2D2A8F #3C38BE #6662D1

Accessibility & contrast

On white

11.42
#2D2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A8F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A8F#FFFFFF#000000##FFFFFF
##2D2A8F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2a8f;
/* rgb */ color: rgb(45, 42, 143);
/* oklch */ color: oklch(36.2% 0.160 276.1);
Tailwind
colors: {
  custom: {
    50: '#7464b1',
    500: '#2d2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a8f;
$custom-light: #7464b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a8f",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 241.782,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36201,
    "c": 0.16048,
    "h": 276.1
  },
  "luminance": 0.04197
}

Semantic roles & 50–950 ramp

primary
#2D2A8F
secondary
#B4B75E
accent
#DE4ADA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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