#2A307B#2A307B

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

Color values

HEX#2A307B
RGBrgb(42, 48, 123)
HSLhsl(236, 49%, 32%)
HSVhsv(236, 66%, 48%)
CMYKcmyk(65.9%, 61%, 0%, 51.8%)
CIE-LABlab(23.79, 22.89, -43.59)
CIE-LCHlch(23.79, 49.23, 297.71°)
OKLaboklab(35.21% 0.0098 -0.1254)
OKLCHoklch(35.21% 0.126 274.5)
XYZxyz(5.5858, 4.0357, 19.2197)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307B #7B752A
analogous
#2A587B #2A307B #4D2A7B
triadic
#2A307B #7B2A30 #307B2A
tetradic
#2A307B #7B2A58 #7B752A #2A7B4D
square
#2A307B #7B2A58 #7B752A #2A7B4D
split-complementary
#2A307B #7B4D2A #587B2A
monochromatic
#0B0C20 #1A1E4D #2A307B #3A42A9 #5961C6

Accessibility & contrast

On white

11.62
#2A307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A307B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307B#FFFFFF#000000##FFFFFF
##2A307B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a307b;
/* rgb */ color: rgb(42, 48, 123);
/* oklch */ color: oklch(35.2% 0.126 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d68a2',
    500: '#2a307b',
    950: '#000000',
  },
}
SCSS
$custom: #2a307b;
$custom-light: #6d68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307b",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 235.556,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3521,
    "c": 0.12578,
    "h": 274.5
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#2A307B
secondary
#ACA555
accent
#CE4FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A307B

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

Preview Lab → · Contrast checker → · Palette generator →

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