#2D2A94#2D2A94

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

Color values

HEX#2D2A94
RGBrgb(45, 42, 148)
HSLhsl(242, 56%, 37%)
HSVhsv(242, 72%, 58%)
CMYKcmyk(69.6%, 71.6%, 0%, 42%)
CIE-LABlab(24.80, 36.22, -57.54)
CIE-LCHlch(24.80, 67.99, 302.19°)
OKLaboklab(36.7% 0.0162 -0.1663)
OKLCHoklch(36.7% 0.167 275.6)
XYZxyz(7.2537, 4.3513, 28.4688)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A94 #91942A
analogous
#2A5C94 #2D2A94 #622A94
triadic
#2D2A94 #942D2A #2A942D
tetradic
#2D2A94 #942A5C #91942A #2A9462
square
#2D2A94 #942A5C #91942A #2A9462
split-complementary
#2D2A94 #94622A #5C942A
monochromatic
#100F35 #1F1C64 #2D2A94 #3B38C4 #6865D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2A94#FFFFFF#000000##FFFFFF
##2D2A941.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)
#004097
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2a94;
/* rgb */ color: rgb(45, 42, 148);
/* oklch */ color: oklch(36.7% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#7564b4',
    500: '#2d2a94',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a94;
$custom-light: #7564b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a94",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 241.698,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36702,
    "c": 0.16705,
    "h": 275.6
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#2D2A94
secondary
#B7B960
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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