#2A307A#2A307A

#2A307A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.124 H 274.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2A307A
RGBrgb(42, 48, 122)
HSLhsl(236, 49%, 32%)
HSVhsv(236, 66%, 48%)
CMYKcmyk(65.6%, 60.7%, 0%, 52.2%)
CIE-LABlab(23.71, 22.52, -43.09)
CIE-LCHlch(23.71, 48.62, 297.59°)
OKLaboklab(35.12% 0.0098 -0.1239)
OKLCHoklch(35.12% 0.124 274.5)
XYZxyz(5.5235, 4.0108, 18.8917)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307A #7A742A
analogous
#2A587A #2A307A #4C2A7A
triadic
#2A307A #7A2A30 #307A2A
tetradic
#2A307A #7A2A58 #7A742A #2A7A4C
square
#2A307A #7A2A58 #7A742A #2A7A4C
split-complementary
#2A307A #7A4C2A #587A2A
monochromatic
#0B0C1F #1A1E4C #2A307A #3A42A8 #5961C6

Accessibility & contrast

On white

11.65
#2A307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A307A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307A#FFFFFF#000000##FFFFFF
##2A307A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a307a;
/* rgb */ color: rgb(42, 48, 122);
/* oklch */ color: oklch(35.1% 0.124 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d68a1',
    500: '#2a307a',
    950: '#000000',
  },
}
SCSS
$custom: #2a307a;
$custom-light: #6d68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307a",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 235.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.12432,
    "h": 274.5
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#2A307A
secondary
#ABA555
accent
#CE4FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A307A

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

Preview Lab → · Contrast checker → · Palette generator →

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