#2A3F7D#2A3F7D

#2A3F7D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.108 H 267.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2A3F7D
RGBrgb(42, 63, 125)
HSLhsl(225, 50%, 33%)
HSVhsv(225, 66%, 49%)
CMYKcmyk(66.4%, 49.6%, 0%, 51%)
CIE-LABlab(28.19, 13.30, -37.74)
CIE-LCHlch(28.19, 40.02, 289.41°)
OKLaboklab(38.57% -0.0054 -0.108)
OKLCHoklch(38.57% 0.108 267.2)
XYZxyz(6.4328, 5.5273, 20.1259)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F7D #7D682A
analogous
#2A697D #2A3F7D #3E2A7D
triadic
#2A3F7D #7D2A3F #3F7D2A
tetradic
#2A3F7D #7D2A69 #7D682A #2A7D3E
square
#2A3F7D #7D2A69 #7D682A #2A7D3E
split-complementary
#2A3F7D #7D3E2A #697D2A
monochromatic
#0B1121 #1B284F #2A3F7D #3956AB #5A76C8

Accessibility & contrast

On white

9.97
#2A3F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A3F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F7D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F7D#FFFFFF#000000##FFFFFF
##2A3F7D1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467F
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3f7d;
/* rgb */ color: rgb(42, 63, 125);
/* oklch */ color: oklch(38.6% 0.108 267.2);
Tailwind
colors: {
  custom: {
    50: '#6d73a3',
    500: '#2a3f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f7d;
$custom-light: #6d73a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f7d",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 224.819,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.10814,
    "h": 267.2
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#2A3F7D
secondary
#AD9756
accent
#B64FD9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A3F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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