#2A3D85#2A3D85

#2A3D85 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.123 H 268.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2A3D85
RGBrgb(42, 61, 133)
HSLhsl(227, 52%, 34%)
HSVhsv(227, 68%, 52%)
CMYKcmyk(68.4%, 54.1%, 0%, 47.8%)
CIE-LABlab(28.17, 17.73, -42.76)
CIE-LCHlch(28.17, 46.29, 292.52°)
OKLaboklab(38.74% -0.0024 -0.1228)
OKLCHoklch(38.74% 0.123 268.9)
XYZxyz(6.8558, 5.5225, 22.8904)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D85 #85722A
analogous
#2A6B85 #2A3D85 #452A85
triadic
#2A3D85 #852A3D #3D852A
tetradic
#2A3D85 #852A6B #85722A #2A8545
square
#2A3D85 #852A6B #85722A #2A8545
split-complementary
#2A3D85 #85452A #6B852A
monochromatic
#0D1228 #1B2856 #2A3D85 #3952B4 #5D75CC

Accessibility & contrast

On white

9.98
#2A3D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A3D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D85
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D85#FFFFFF#000000##FFFFFF
##2A3D851.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4788
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3d85;
/* rgb */ color: rgb(42, 61, 133);
/* oklch */ color: oklch(38.7% 0.123 268.9);
Tailwind
colors: {
  custom: {
    50: '#6f72a9',
    500: '#2a3d85',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d85;
$custom-light: #6f72a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d85",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 133
  },
  "hsl": {
    "h": 227.473,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3874,
    "c": 0.12282,
    "h": 268.9
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#2A3D85
secondary
#B29F59
accent
#BE4CDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3D85

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

Preview Lab → · Contrast checker → · Palette generator →

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