#302FAE#302FAE

#302FAE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.194 H 273.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#302FAE
RGBrgb(48, 47, 174)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 68%)
CMYKcmyk(72.4%, 73%, 0%, 31.8%)
CIE-LABlab(28.69, 42.43, -66.93)
CIE-LCHlch(28.69, 79.25, 302.37°)
OKLaboklab(40.32% 0.0127 -0.1936)
OKLCHoklch(40.32% 0.194 273.7)
XYZxyz(9.8729, 5.7164, 40.6193)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FAE #ADAE2F
analogous
#2F6EAE #302FAE #6F2FAE
triadic
#302FAE #AE302F #2FAE30
tetradic
#302FAE #AE2F6E #ADAE2F #2FAE6F
square
#302FAE #AE2F6E #ADAE2F #2FAE6F
split-complementary
#302FAE #AE6F2F #6EAE2F
monochromatic
#15154E #23227E #302FAE #4D4CCF #7D7CDC

Accessibility & contrast

On white

9.80
#302FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#302FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FAE
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FAE#FFFFFF#000000##FFFFFF
##302FAE1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302fae;
/* rgb */ color: rgb(48, 47, 174);
/* oklch */ color: oklch(40.3% 0.194 273.7);
Tailwind
colors: {
  custom: {
    50: '#7c69c7',
    500: '#302fae',
    950: '#000000',
  },
}
SCSS
$custom: #302fae;
$custom-light: #7c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#302fae",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 240.472,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.194,
    "h": 273.7
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#302FAE
secondary
#C3C475
accent
#E147E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FAE

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

Preview Lab → · Contrast checker → · Palette generator →

#302FAE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva