#2A306F#2A306F

#2A306F is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.108 H 275.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A306F
RGBrgb(42, 48, 111)
HSLhsl(235, 45%, 30%)
HSVhsv(235, 62%, 44%)
CMYKcmyk(62.2%, 56.8%, 0%, 56.5%)
CIE-LABlab(22.84, 18.43, -37.47)
CIE-LCHlch(22.84, 41.76, 296.19°)
OKLaboklab(34.2% 0.0095 -0.1074)
OKLCHoklch(34.2% 0.108 275.1)
XYZxyz(4.8801, 3.7535, 15.5032)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A306F #6F692A
analogous
#2A526F #2A306F #472A6F
triadic
#2A306F #6F2A30 #306F2A
tetradic
#2A306F #6F2A52 #6F692A #2A6F47
square
#2A306F #6F2A52 #6F692A #2A6F47
split-complementary
#2A306F #6F472A #526F2A
monochromatic
#080A16 #191D43 #2A306F #3B439B #555EBF

Accessibility & contrast

On white

11.99
#2A306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A306F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A306F#FFFFFF#000000##FFFFFF
##2A306F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073A71
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a306f;
/* rgb */ color: rgb(42, 48, 111);
/* oklch */ color: oklch(34.2% 0.108 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b6899',
    500: '#2a306f',
    950: '#000000',
  },
}
SCSS
$custom: #2a306f;
$custom-light: #6b6899;
$custom-dark: #000000;
JSON
{
  "hex": "#2a306f",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 234.783,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.34202,
    "c": 0.10783,
    "h": 275.1
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#2A306F
secondary
#A19A54
accent
#CA53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A306F

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

Preview Lab → · Contrast checker → · Palette generator →

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