#2A306E#2A306E

#2A306E is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.106 H 275.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2A306E
RGBrgb(42, 48, 110)
HSLhsl(235, 45%, 30%)
HSVhsv(235, 62%, 43%)
CMYKcmyk(61.8%, 56.4%, 0%, 56.9%)
CIE-LABlab(22.76, 18.06, -36.95)
CIE-LCHlch(22.76, 41.13, 296.04°)
OKLaboklab(34.12% 0.0095 -0.1059)
OKLCHoklch(34.12% 0.106 275.1)
XYZxyz(4.8254, 3.7316, 15.2148)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A306E #6E682A
analogous
#2A526E #2A306E #462A6E
triadic
#2A306E #6E2A30 #306E2A
tetradic
#2A306E #6E2A52 #6E682A #2A6E46
square
#2A306E #6E2A52 #6E682A #2A6E46
split-complementary
#2A306E #6E462A #526E2A
monochromatic
#080A16 #191D42 #2A306E #3B439A #555EBE

Accessibility & contrast

On white

12.02
#2A306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A306E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A306E#FFFFFF#000000##FFFFFF
##2A306E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093970
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a306e;
/* rgb */ color: rgb(42, 48, 110);
/* oklch */ color: oklch(34.1% 0.106 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b6898',
    500: '#2a306e',
    950: '#000000',
  },
}
SCSS
$custom: #2a306e;
$custom-light: #6b6898;
$custom-dark: #000000;
JSON
{
  "hex": "#2a306e",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 234.706,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.1063,
    "h": 275.1
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#2A306E
secondary
#A09954
accent
#C953D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A306E

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

Preview Lab → · Contrast checker → · Palette generator →

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