#2A2D98#2A2D98

#2A2D98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.170 H 273.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2D98
RGBrgb(42, 45, 152)
HSLhsl(238, 57%, 38%)
HSVhsv(238, 72%, 60%)
CMYKcmyk(72.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.67, 35.41, -58.58)
CIE-LCHlch(25.67, 68.45, 301.15°)
OKLaboklab(37.39% 0.01 -0.1694)
OKLCHoklch(37.39% 0.17 273.4)
XYZxyz(7.5588, 4.6353, 30.1960)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D98 #98952A
analogous
#2A6498 #2A2D98 #5E2A98
triadic
#2A2D98 #982A2D #2D982A
tetradic
#2A2D98 #982A64 #98952A #2A985E
square
#2A2D98 #982A64 #98952A #2A985E
split-complementary
#2A2D98 #985E2A #64982A
monochromatic
#101138 #1D1F68 #2A2D98 #373BC8 #676AD5

Accessibility & contrast

On white

10.90
#2A2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D98
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D98#FFFFFF#000000##FFFFFF
##2A2D981.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2d98;
/* rgb */ color: rgb(42, 45, 152);
/* oklch */ color: oklch(37.4% 0.170 273.4);
Tailwind
colors: {
  custom: {
    50: '#7466b7',
    500: '#2a2d98',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d98;
$custom-light: #7466b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d98",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 238.364,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.16966,
    "h": 273.4
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#2A2D98
secondary
#BBB962
accent
#DC48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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