#2A34B3#2A34B3

#2A34B3 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.197 H 270.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2A34B3
RGBrgb(42, 52, 179)
HSLhsl(236, 62%, 43%)
HSVhsv(236, 77%, 70%)
CMYKcmyk(76.5%, 70.9%, 0%, 29.8%)
CIE-LABlab(29.92, 40.60, -67.90)
CIE-LCHlch(29.92, 79.11, 300.87°)
OKLaboklab(41.26% 0.0026 -0.1966)
OKLCHoklch(41.26% 0.197 270.8)
XYZxyz(10.3168, 6.2018, 43.2924)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A34B3 #B3A92A
analogous
#2A79B3 #2A34B3 #642AB3
triadic
#2A34B3 #B32A34 #34B32A
tetradic
#2A34B3 #B32A79 #B3A92A #2AB364
square
#2A34B3 #B32A79 #B3A92A #2AB364
split-complementary
#2A34B3 #B3642A #79B32A
monochromatic
#131750 #1E2681 #2A34B3 #4651D4 #7880DF

Accessibility & contrast

On white

9.37
#2A34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A34B3
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A34B3#FFFFFF#000000##FFFFFF
##2A34B31.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a34b3;
/* rgb */ color: rgb(42, 52, 179);
/* oklch */ color: oklch(41.3% 0.197 270.8);
Tailwind
colors: {
  custom: {
    50: '#7a6ccb',
    500: '#2a34b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a34b3;
$custom-light: #7a6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a34b3",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 235.62,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41259,
    "c": 0.19659,
    "h": 270.8
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#2A34B3
secondary
#C7C172
accent
#D943E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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