#2A2D7B#2A2D7B

#2A2D7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.130 H 275.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2A2D7B
RGBrgb(42, 45, 123)
HSLhsl(238, 49%, 32%)
HSVhsv(238, 66%, 48%)
CMYKcmyk(65.9%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.99, 24.93, -44.88)
CIE-LCHlch(22.99, 51.34, 299.05°)
OKLaboklab(34.62% 0.0127 -0.1292)
OKLCHoklch(34.62% 0.13 275.6)
XYZxyz(5.4672, 3.7986, 19.1801)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D7B #7B782A
analogous
#2A557B #2A2D7B #502A7B
triadic
#2A2D7B #7B2A2D #2D7B2A
tetradic
#2A2D7B #7B2A55 #7B782A #2A7B50
square
#2A2D7B #7B2A55 #7B782A #2A7B50
split-complementary
#2A2D7B #7B502A #557B2A
monochromatic
#0B0C20 #1A1C4D #2A2D7B #3A3EA9 #595DC6

Accessibility & contrast

On white

11.93
#2A2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D7B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D7B#FFFFFF#000000##FFFFFF
##2A2D7B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2d7b;
/* rgb */ color: rgb(42, 45, 123);
/* oklch */ color: oklch(34.6% 0.130 275.6);
Tailwind
colors: {
  custom: {
    50: '#6e66a2',
    500: '#2a2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d7b;
$custom-light: #6e66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d7b",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 237.778,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34623,
    "c": 0.12985,
    "h": 275.6
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#2A2D7B
secondary
#ACA955
accent
#D44FD9
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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