#2A2D94#2A2D94

#2A2D94 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.164 H 273.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2A2D94
RGBrgb(42, 45, 148)
HSLhsl(238, 56%, 37%)
HSVhsv(238, 72%, 58%)
CMYKcmyk(71.6%, 69.6%, 0%, 42%)
CIE-LABlab(25.28, 33.99, -56.76)
CIE-LCHlch(25.28, 66.16, 300.91°)
OKLaboklab(36.99% 0.0105 -0.1641)
OKLCHoklch(36.99% 0.164 273.7)
XYZxyz(7.2367, 4.5064, 28.4997)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D94 #94912A
analogous
#2A6294 #2A2D94 #5C2A94
triadic
#2A2D94 #942A2D #2D942A
tetradic
#2A2D94 #942A62 #94912A #2A945C
square
#2A2D94 #942A62 #94912A #2A945C
split-complementary
#2A2D94 #945C2A #62942A
monochromatic
#0F1035 #1C1F64 #2A2D94 #383BC4 #6568D3

Accessibility & contrast

On white

11.04
#2A2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D94
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D94#FFFFFF#000000##FFFFFF
##2A2D941.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2d94;
/* rgb */ color: rgb(42, 45, 148);
/* oklch */ color: oklch(37.0% 0.164 273.7);
Tailwind
colors: {
  custom: {
    50: '#7366b4',
    500: '#2a2d94',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d94;
$custom-light: #7366b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d94",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 238.302,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36994,
    "c": 0.1644,
    "h": 273.7
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#2A2D94
secondary
#B9B760
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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