#2A306C#2A306C

#2A306C is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.103 H 275.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2A306C
RGBrgb(42, 48, 108)
HSLhsl(235, 44%, 29%)
HSVhsv(235, 61%, 42%)
CMYKcmyk(61.1%, 55.6%, 0%, 57.6%)
CIE-LABlab(22.61, 17.31, -35.90)
CIE-LCHlch(22.61, 39.86, 295.75°)
OKLaboklab(33.96% 0.0093 -0.1028)
OKLCHoklch(33.96% 0.103 275.2)
XYZxyz(4.7177, 3.6885, 14.6478)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A306C #6C662A
analogous
#2A516C #2A306C #452A6C
triadic
#2A306C #6C2A30 #306C2A
tetradic
#2A306C #6C2A51 #6C662A #2A6C45
square
#2A306C #6C2A51 #6C662A #2A6C45
split-complementary
#2A306C #6C452A #516C2A
monochromatic
#090A16 #191C40 #2A306C #3B4498 #545DBC

Accessibility & contrast

On white

12.08
#2A306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A306C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A306C#FFFFFF#000000##FFFFFF
##2A306C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D396E
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a306c;
/* rgb */ color: rgb(42, 48, 108);
/* oklch */ color: oklch(34.0% 0.103 275.2);
Tailwind
colors: {
  custom: {
    50: '#6a6896',
    500: '#2a306c',
    950: '#000000',
  },
}
SCSS
$custom: #2a306c;
$custom-light: #6a6896;
$custom-dark: #000000;
JSON
{
  "hex": "#2a306c",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 234.545,
    "s": 44,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.10322,
    "h": 275.2
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#2A306C
secondary
#9E9754
accent
#C854D4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A306C

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

Preview Lab → · Contrast checker → · Palette generator →

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