#2A4183#2A4183

#2A4183 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.114 H 266.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2A4183
RGBrgb(42, 65, 131)
HSLhsl(224, 51%, 34%)
HSVhsv(224, 68%, 51%)
CMYKcmyk(67.9%, 50.4%, 0%, 48.6%)
CIE-LABlab(29.19, 14.22, -39.88)
CIE-LCHlch(29.19, 42.34, 289.62°)
OKLaboklab(39.46% -0.0066 -0.1143)
OKLCHoklch(39.46% 0.114 266.7)
XYZxyz(6.9405, 5.9109, 22.2435)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4183 #836C2A
analogous
#2A6E83 #2A4183 #402A83
triadic
#2A4183 #832A41 #41832A
tetradic
#2A4183 #832A6E #836C2A #2A8340
square
#2A4183 #832A6E #836C2A #2A8340
split-complementary
#2A4183 #83402A #6E832A
monochromatic
#0C1326 #1B2A55 #2A4183 #3958B1 #5D79CB

Accessibility & contrast

On white

9.62
#2A4183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A4183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4183
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4183#FFFFFF#000000##FFFFFF
##2A41831.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4985
Deuteranopia (green-blind)
#074182
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4183;
/* rgb */ color: rgb(42, 65, 131);
/* oklch */ color: oklch(39.5% 0.114 266.7);
Tailwind
colors: {
  custom: {
    50: '#6e75a7',
    500: '#2a4183',
    950: '#000000',
  },
}
SCSS
$custom: #2a4183;
$custom-light: #6e75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4183",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 131
  },
  "hsl": {
    "h": 224.494,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39462,
    "c": 0.11446,
    "h": 266.7
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#2A4183
secondary
#B19A58
accent
#B64DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4183

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

Preview Lab → · Contrast checker → · Palette generator →

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