#2A3E7D#2A3E7D

#2A3E7D is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.109 H 267.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2A3E7D
RGBrgb(42, 62, 125)
HSLhsl(226, 50%, 33%)
HSVhsv(226, 66%, 49%)
CMYKcmyk(66.4%, 50.4%, 0%, 51%)
CIE-LABlab(27.89, 13.99, -38.22)
CIE-LCHlch(27.89, 40.70, 290.10°)
OKLaboklab(38.34% -0.0043 -0.1094)
OKLCHoklch(38.34% 0.109 267.7)
XYZxyz(6.3779, 5.4176, 20.1077)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E7D #7D692A
analogous
#2A687D #2A3E7D #3F2A7D
triadic
#2A3E7D #7D2A3E #3E7D2A
tetradic
#2A3E7D #7D2A68 #7D692A #2A7D3F
square
#2A3E7D #7D2A68 #7D692A #2A7D3F
split-complementary
#2A3E7D #7D3F2A #687D2A
monochromatic
#0B1121 #1B274F #2A3E7D #3955AB #5A74C8

Accessibility & contrast

On white

10.08
#2A3E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A3E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E7D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E7D#FFFFFF#000000##FFFFFF
##2A3E7D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#0B3E7C
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3e7d;
/* rgb */ color: rgb(42, 62, 125);
/* oklch */ color: oklch(38.3% 0.109 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d72a3',
    500: '#2a3e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e7d;
$custom-light: #6d72a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e7d",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 125
  },
  "hsl": {
    "h": 225.542,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38344,
    "c": 0.10949,
    "h": 267.7
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#2A3E7D
secondary
#AD9856
accent
#B84FD9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A3E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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