#2A3A7B#2A3A7B

#2A3A7B is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.112 H 269.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2A3A7B
RGBrgb(42, 58, 123)
HSLhsl(228, 49%, 32%)
HSVhsv(228, 66%, 48%)
CMYKcmyk(65.9%, 52.8%, 0%, 51.8%)
CIE-LABlab(26.59, 15.99, -39.06)
CIE-LCHlch(26.59, 42.21, 292.26°)
OKLaboklab(37.31% -0.0003 -0.112)
OKLCHoklch(37.31% 0.112 269.8)
XYZxyz(6.0418, 4.9479, 19.3717)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A7B #7B6B2A
analogous
#2A637B #2A3A7B #422A7B
triadic
#2A3A7B #7B2A3A #3A7B2A
tetradic
#2A3A7B #7B2A63 #7B6B2A #2A7B42
square
#2A3A7B #7B2A63 #7B6B2A #2A7B42
split-complementary
#2A3A7B #7B422A #637B2A
monochromatic
#0B0F20 #1A244D #2A3A7B #3A50A9 #596FC6

Accessibility & contrast

On white

10.55
#2A3A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A7B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A7B#FFFFFF#000000##FFFFFF
##2A3A7B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3a7b;
/* rgb */ color: rgb(42, 58, 123);
/* oklch */ color: oklch(37.3% 0.112 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d6fa2',
    500: '#2a3a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a7b;
$custom-light: #6d6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a7b",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 123
  },
  "hsl": {
    "h": 228.148,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37307,
    "c": 0.11196,
    "h": 269.8
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#2A3A7B
secondary
#AC9B55
accent
#BD4FD9
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #2A3A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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