#2A306D#2A306D

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

Color values

HEX#2A306D
RGBrgb(42, 48, 109)
HSLhsl(235, 44%, 30%)
HSVhsv(235, 61%, 43%)
CMYKcmyk(61.5%, 56%, 0%, 57.3%)
CIE-LABlab(22.69, 17.69, -36.43)
CIE-LCHlch(22.69, 40.49, 295.90°)
OKLaboklab(34.04% 0.0094 -0.1043)
OKLCHoklch(34.04% 0.105 275.1)
XYZxyz(4.7712, 3.7099, 14.9297)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A306D #6D672A
analogous
#2A526D #2A306D #462A6D
triadic
#2A306D #6D2A30 #306D2A
tetradic
#2A306D #6D2A52 #6D672A #2A6D46
square
#2A306D #6D2A52 #6D672A #2A6D46
split-complementary
#2A306D #6D462A #526D2A
monochromatic
#090A16 #191D41 #2A306D #3B4399 #545EBD

Accessibility & contrast

On white

12.06
#2A306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A306D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A306D#FFFFFF#000000##FFFFFF
##2A306D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a306d;
/* rgb */ color: rgb(42, 48, 109);
/* oklch */ color: oklch(34.0% 0.105 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b6897',
    500: '#2a306d',
    950: '#000000',
  },
}
SCSS
$custom: #2a306d;
$custom-light: #6b6897;
$custom-dark: #000000;
JSON
{
  "hex": "#2a306d",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 234.627,
    "s": 44.371,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.10476,
    "h": 275.1
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#2A306D
secondary
#9F9854
accent
#C954D4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A306D

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

Preview Lab → · Contrast checker → · Palette generator →

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