#2A307F#2A307F

#2A307F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.132 H 274.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2A307F
RGBrgb(42, 48, 127)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 67%, 50%)
CMYKcmyk(66.9%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.12, 24.37, -45.57)
CIE-LCHlch(24.12, 51.68, 298.14°)
OKLaboklab(35.56% 0.0097 -0.1312)
OKLCHoklch(35.56% 0.132 274.2)
XYZxyz(5.8413, 4.1379, 20.5654)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307F #7F792A
analogous
#2A5A7F #2A307F #4E2A7F
triadic
#2A307F #7F2A30 #307F2A
tetradic
#2A307F #7F2A5A #7F792A #2A7F4E
square
#2A307F #7F2A5A #7F792A #2A7F4E
split-complementary
#2A307F #7F4E2A #5A7F2A
monochromatic
#0C0D23 #1B1F51 #2A307F #3941AD #5B62C9

Accessibility & contrast

On white

11.49
#2A307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A307F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307F#FFFFFF#000000##FFFFFF
##2A307F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a307f;
/* rgb */ color: rgb(42, 48, 127);
/* oklch */ color: oklch(35.6% 0.132 274.2);
Tailwind
colors: {
  custom: {
    50: '#6e68a5',
    500: '#2a307f',
    950: '#000000',
  },
}
SCSS
$custom: #2a307f;
$custom-light: #6e68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307f",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 235.765,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35561,
    "c": 0.1316,
    "h": 274.2
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#2A307F
secondary
#AEA857
accent
#D04EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A307F

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

Preview Lab → · Contrast checker → · Palette generator →

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