#2A307E#2A307E

#2A307E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.130 H 274.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2A307E
RGBrgb(42, 48, 126)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 67%, 49%)
CMYKcmyk(66.7%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.04, 24.00, -45.08)
CIE-LCHlch(24.04, 51.07, 298.03°)
OKLaboklab(35.47% 0.0098 -0.1298)
OKLCHoklch(35.47% 0.13 274.3)
XYZxyz(5.7764, 4.1120, 20.2239)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307E #7E782A
analogous
#2A5A7E #2A307E #4E2A7E
triadic
#2A307E #7E2A30 #307E2A
tetradic
#2A307E #7E2A5A #7E782A #2A7E4E
square
#2A307E #7E2A5A #7E782A #2A7E4E
split-complementary
#2A307E #7E4E2A #5A7E2A
monochromatic
#0B0D22 #1B1F50 #2A307E #3941AC #5A62C8

Accessibility & contrast

On white

11.52
#2A307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A307E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307E#FFFFFF#000000##FFFFFF
##2A307E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a307e;
/* rgb */ color: rgb(42, 48, 126);
/* oklch */ color: oklch(35.5% 0.130 274.3);
Tailwind
colors: {
  custom: {
    50: '#6e68a4',
    500: '#2a307e',
    950: '#000000',
  },
}
SCSS
$custom: #2a307e;
$custom-light: #6e68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307e",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 235.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35473,
    "c": 0.13016,
    "h": 274.3
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A307E

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

Preview Lab → · Contrast checker → · Palette generator →

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