#2A2B7F#2A2B7F

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

Color values

HEX#2A2B7F
RGBrgb(42, 43, 127)
HSLhsl(239, 50%, 33%)
HSVhsv(239, 67%, 50%)
CMYKcmyk(66.9%, 66.1%, 0%, 50.2%)
CIE-LABlab(22.83, 27.73, -47.68)
CIE-LCHlch(22.83, 55.16, 300.18°)
OKLaboklab(34.61% 0.0142 -0.1374)
OKLCHoklch(34.61% 0.138 275.9)
XYZxyz(5.6482, 3.7518, 20.5011)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B7F #7F7E2A
analogous
#2A557F #2A2B7F #532A7F
triadic
#2A2B7F #7F2A2B #2B7F2A
tetradic
#2A2B7F #7F2A55 #7F7E2A #2A7F53
square
#2A2B7F #7F2A55 #7F7E2A #2A7F53
split-complementary
#2A2B7F #7F532A #557F2A
monochromatic
#0C0C23 #1B1B51 #2A2B7F #393BAD #5B5CC9

Accessibility & contrast

On white

12.00
#2A2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B7F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B7F#FFFFFF#000000##FFFFFF
##2A2B7F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2b7f;
/* rgb */ color: rgb(42, 43, 127);
/* oklch */ color: oklch(34.6% 0.138 275.9);
Tailwind
colors: {
  custom: {
    50: '#6f64a5',
    500: '#2a2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b7f;
$custom-light: #6f64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b7f",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 239.294,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34614,
    "c": 0.13818,
    "h": 275.9
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#2A2B7F
secondary
#AEAD57
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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