#2A307C#2A307C

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

Color values

HEX#2A307C
RGBrgb(42, 48, 124)
HSLhsl(236, 49%, 33%)
HSVhsv(236, 66%, 49%)
CMYKcmyk(66.1%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.87, 23.26, -44.09)
CIE-LCHlch(23.87, 49.85, 297.82°)
OKLaboklab(35.3% 0.0098 -0.1269)
OKLCHoklch(35.3% 0.127 274.4)
XYZxyz(5.6487, 4.0609, 19.5510)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A307C #7C762A
analogous
#2A597C #2A307C #4D2A7C
triadic
#2A307C #7C2A30 #307C2A
tetradic
#2A307C #7C2A59 #7C762A #2A7C4D
square
#2A307C #7C2A59 #7C762A #2A7C4D
split-complementary
#2A307C #7C4D2A #597C2A
monochromatic
#0B0D21 #1B1E4E #2A307C #3942AA #5961C7

Accessibility & contrast

On white

11.59
#2A307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A307C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A307C#FFFFFF#000000##FFFFFF
##2A307C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a307c;
/* rgb */ color: rgb(42, 48, 124);
/* oklch */ color: oklch(35.3% 0.127 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e68a3',
    500: '#2a307c',
    950: '#000000',
  },
}
SCSS
$custom: #2a307c;
$custom-light: #6e68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a307c",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 235.61,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35297,
    "c": 0.12725,
    "h": 274.4
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A307C

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

Preview Lab → · Contrast checker → · Palette generator →

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