#2A34B5#2A34B5

#2A34B5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.5% C 0.199 H 270.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A34B5
RGBrgb(42, 52, 181)
HSLhsl(236, 62%, 44%)
HSVhsv(236, 77%, 71%)
CMYKcmyk(76.8%, 71.3%, 0%, 29%)
CIE-LABlab(30.12, 41.29, -68.76)
CIE-LCHlch(30.12, 80.21, 300.99°)
OKLaboklab(41.46% 0.0024 -0.1991)
OKLCHoklch(41.46% 0.199 270.7)
XYZxyz(10.5205, 6.2833, 44.3654)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B5 #B5AB2A
analogous
#2A79B5 #2A34B5 #652AB5
triadic
#2A34B5 #B52A34 #34B52A
tetradic
#2A34B5 #B52A79 #B5AB2A #2AB565
square
#2A34B5 #B52A79 #B5AB2A #2AB565
split-complementary
#2A34B5 #B5652A #79B52A
monochromatic
#131752 #1E2683 #2A34B5 #4852D4 #7981E0

Accessibility & contrast

On white

9.31
#2A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34B5
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B5#FFFFFF#000000##FFFFFF
##2A34B51.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a34b5;
/* rgb */ color: rgb(42, 52, 181);
/* oklch */ color: oklch(41.5% 0.199 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ccc',
    500: '#2a34b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b5;
$custom-light: #7b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b5",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 235.683,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41463,
    "c": 0.19908,
    "h": 270.7
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#2A34B5
secondary
#C8C273
accent
#DA42E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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