#2A2D7F#2A2D7F

#2A2D7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.136 H 275.3°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A2D7F
RGBrgb(42, 45, 127)
HSLhsl(238, 50%, 33%)
HSVhsv(238, 67%, 50%)
CMYKcmyk(66.9%, 64.6%, 0%, 50.2%)
CIE-LABlab(23.34, 26.40, -46.85)
CIE-LCHlch(23.34, 53.77, 299.40°)
OKLaboklab(34.99% 0.0124 -0.135)
OKLCHoklch(34.99% 0.136 275.3)
XYZxyz(5.7227, 3.9008, 20.5259)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D7F #7F7C2A
analogous
#2A577F #2A2D7F #512A7F
triadic
#2A2D7F #7F2A2D #2D7F2A
tetradic
#2A2D7F #7F2A57 #7F7C2A #2A7F51
square
#2A2D7F #7F2A57 #7F7C2A #2A7F51
split-complementary
#2A2D7F #7F512A #577F2A
monochromatic
#0C0C23 #1B1D51 #2A2D7F #393DAD #5B5FC9

Accessibility & contrast

On white

11.80
#2A2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D7F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D7F#FFFFFF#000000##FFFFFF
##2A2D7F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2d7f;
/* rgb */ color: rgb(42, 45, 127);
/* oklch */ color: oklch(35.0% 0.136 275.3);
Tailwind
colors: {
  custom: {
    50: '#6f66a5',
    500: '#2a2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d7f;
$custom-light: #6f66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d7f",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 237.882,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34986,
    "c": 0.13558,
    "h": 275.3
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#2A2D7F
secondary
#AEAB57
accent
#D54EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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