#2A307D#2A307D

#2A307D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.129 H 274.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2A307D
RGBrgb(42, 48, 125)
HSLhsl(236, 50%, 33%)
HSVhsv(236, 66%, 49%)
CMYKcmyk(66.4%, 61.6%, 0%, 51%)
CIE-LABlab(23.95, 23.63, -44.59)
CIE-LCHlch(23.95, 50.46, 297.93°)
OKLaboklab(35.39% 0.0098 -0.1283)
OKLCHoklch(35.39% 0.129 274.4)
XYZxyz(5.7122, 4.0863, 19.8858)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307D #7D772A
analogous
#2A597D #2A307D #4E2A7D
triadic
#2A307D #7D2A30 #307D2A
tetradic
#2A307D #7D2A59 #7D772A #2A7D4E
square
#2A307D #7D2A59 #7D772A #2A7D4E
split-complementary
#2A307D #7D4E2A #597D2A
monochromatic
#0B0D21 #1B1E4F #2A307D #3942AB #5A62C8

Accessibility & contrast

On white

11.55
#2A307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A307D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307D#FFFFFF#000000##FFFFFF
##2A307D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a307d;
/* rgb */ color: rgb(42, 48, 125);
/* oklch */ color: oklch(35.4% 0.129 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e68a3',
    500: '#2a307d',
    950: '#000000',
  },
}
SCSS
$custom: #2a307d;
$custom-light: #6e68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307d",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 235.663,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35385,
    "c": 0.1287,
    "h": 274.4
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#2A307D
secondary
#ADA756
accent
#CF4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A307D

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

Preview Lab → · Contrast checker → · Palette generator →

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