#2A3A8F#2A3A8F

#2A3A8F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.141 H 270.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#2A3A8F
RGBrgb(42, 58, 143)
HSLhsl(230, 55%, 36%)
HSVhsv(230, 71%, 56%)
CMYKcmyk(70.6%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.12, 23.58, -49.05)
CIE-LCHlch(28.12, 54.42, 295.67°)
OKLaboklab(38.94% 0.0009 -0.1413)
OKLCHoklch(38.94% 0.141 270.4)
XYZxyz(7.4241, 5.5008, 26.6518)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A8F #8F7F2A
analogous
#2A6D8F #2A3A8F #4D2A8F
triadic
#2A3A8F #8F2A3A #3A8F2A
tetradic
#2A3A8F #8F2A6D #8F7F2A #2A8F4D
square
#2A3A8F #8F2A6D #8F7F2A #2A8F4D
split-complementary
#2A3A8F #8F4D2A #6D8F2A
monochromatic
#0E1430 #1C2760 #2A3A8F #384DBE #6274D1

Accessibility & contrast

On white

10.00
#2A3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A3A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A8F
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A8F#FFFFFF#000000##FFFFFF
##2A3A8F1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3a8f;
/* rgb */ color: rgb(42, 58, 143);
/* oklch */ color: oklch(38.9% 0.141 270.4);
Tailwind
colors: {
  custom: {
    50: '#7170b0',
    500: '#2a3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a8f;
$custom-light: #7170b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a8f",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 230.495,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38941,
    "c": 0.14133,
    "h": 270.4
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#2A3A8F
secondary
#B7A95E
accent
#C64ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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