#2A306A#2A306A

#2A306A is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.100 H 275.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A306A
RGBrgb(42, 48, 106)
HSLhsl(234, 43%, 29%)
HSVhsv(234, 60%, 42%)
CMYKcmyk(60.4%, 54.7%, 0%, 58.4%)
CIE-LABlab(22.47, 16.57, -34.85)
CIE-LCHlch(22.47, 38.59, 295.44°)
OKLaboklab(33.8% 0.0092 -0.0997)
OKLCHoklch(33.8% 0.1 275.2)
XYZxyz(4.6125, 3.6464, 14.0936)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A306A #6A642A
analogous
#2A506A #2A306A #442A6A
triadic
#2A306A #6A2A30 #306A2A
tetradic
#2A306A #6A2A50 #6A642A #2A6A44
square
#2A306A #6A2A50 #6A642A #2A6A44
split-complementary
#2A306A #6A442A #506A2A
monochromatic
#090A16 #191C3E #2A306A #3B4496 #535DBB

Accessibility & contrast

On white

12.14
#2A306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A306A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A306A#FFFFFF#000000##FFFFFF
##2A306A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10386C
Deuteranopia (green-blind)
#043369
Tritanopia (blue-blind)
#033D48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a306a;
/* rgb */ color: rgb(42, 48, 106);
/* oklch */ color: oklch(33.8% 0.100 275.2);
Tailwind
colors: {
  custom: {
    50: '#6a6895',
    500: '#2a306a',
    950: '#000000',
  },
}
SCSS
$custom: #2a306a;
$custom-light: #6a6895;
$custom-dark: #000000;
JSON
{
  "hex": "#2a306a",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 234.375,
    "s": 43.243,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.10011,
    "h": 275.2
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#2A306A
secondary
#9C9554
accent
#C755D3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A306A

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

Preview Lab → · Contrast checker → · Palette generator →

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