#2A4283#2A4283

#2A4283 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.113 H 266.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2A4283
RGBrgb(42, 66, 131)
HSLhsl(224, 51%, 34%)
HSVhsv(224, 68%, 51%)
CMYKcmyk(67.9%, 49.6%, 0%, 48.6%)
CIE-LABlab(29.48, 13.53, -39.41)
CIE-LCHlch(29.48, 41.67, 288.95°)
OKLaboklab(39.69% -0.0076 -0.1129)
OKLCHoklch(39.69% 0.113 266.1)
XYZxyz(6.9984, 6.0267, 22.2628)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4283 #836B2A
analogous
#2A6F83 #2A4283 #3F2A83
triadic
#2A4283 #832A42 #42832A
tetradic
#2A4283 #832A6F #836B2A #2A833F
square
#2A4283 #832A6F #836B2A #2A833F
split-complementary
#2A4283 #833F2A #6F832A
monochromatic
#0C1326 #1B2B55 #2A4283 #3959B1 #5D7ACB

Accessibility & contrast

On white

9.52
#2A4283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A4283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4283
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4283#FFFFFF#000000##FFFFFF
##2A42831.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A85
Deuteranopia (green-blind)
#0C4282
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4283;
/* rgb */ color: rgb(42, 66, 131);
/* oklch */ color: oklch(39.7% 0.113 266.1);
Tailwind
colors: {
  custom: {
    50: '#6e75a7',
    500: '#2a4283',
    950: '#000000',
  },
}
SCSS
$custom: #2a4283;
$custom-light: #6e75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4283",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 131
  },
  "hsl": {
    "h": 223.82,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39686,
    "c": 0.11313,
    "h": 266.1
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#2A4283
secondary
#B19958
accent
#B54DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4283

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

Preview Lab → · Contrast checker → · Palette generator →

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