#2D2A9F#2D2A9F

#2D2A9F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.181 H 274.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2D2A9F
RGBrgb(45, 42, 159)
HSLhsl(242, 58%, 39%)
HSVhsv(242, 74%, 62%)
CMYKcmyk(71.7%, 73.6%, 0%, 37.6%)
CIE-LABlab(25.91, 39.98, -62.45)
CIE-LCHlch(25.91, 74.16, 302.63°)
OKLaboklab(37.83% 0.0144 -0.1806)
OKLCHoklch(37.83% 0.181 274.5)
XYZxyz(8.1661, 4.7162, 33.2741)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A9F #9C9F2A
analogous
#2A629F #2D2A9F #672A9F
triadic
#2D2A9F #9F2D2A #2A9F2D
tetradic
#2D2A9F #9F2A62 #9C9F2A #2A9F67
square
#2D2A9F #9F2A62 #9C9F2A #2A9F67
split-complementary
#2D2A9F #9F672A #629F2A
monochromatic
#12103E #1F1D6F #2D2A9F #3F3BCB #6E6BD8

Accessibility & contrast

On white

10.81
#2D2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D2A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A9F
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A9F#FFFFFF#000000##FFFFFF
##2D2A9F1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2a9f;
/* rgb */ color: rgb(45, 42, 159);
/* oklch */ color: oklch(37.8% 0.181 274.5);
Tailwind
colors: {
  custom: {
    50: '#7865bd',
    500: '#2d2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a9f;
$custom-light: #7865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a9f",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 241.538,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3783,
    "c": 0.18116,
    "h": 274.5
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#2D2A9F
secondary
#BCBF66
accent
#E146DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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