#302EAF#302EAF

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

Color values

HEX#302EAF
RGBrgb(48, 46, 175)
HSLhsl(241, 58%, 43%)
HSVhsv(241, 74%, 69%)
CMYKcmyk(72.6%, 73.7%, 0%, 31.4%)
CIE-LABlab(28.58, 43.34, -67.70)
CIE-LCHlch(28.58, 80.39, 302.63°)
OKLaboklab(40.28% 0.013 -0.1958)
OKLCHoklch(40.28% 0.196 273.8)
XYZxyz(9.9312, 5.6765, 41.1214)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EAF #ADAF2E
analogous
#2E6CAF #302EAF #702EAF
triadic
#302EAF #AF302E #2EAF30
tetradic
#302EAF #AF2E6C #ADAF2E #2EAF70
square
#302EAF #AF2E6C #ADAF2E #2EAF70
split-complementary
#302EAF #AF702E #6CAF2E
monochromatic
#15154E #23217F #302EAF #4D4BD0 #7D7BDC

Accessibility & contrast

On white

9.83
#302EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EAF
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EAF#FFFFFF#000000##FFFFFF
##302EAF1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302eaf;
/* rgb */ color: rgb(48, 46, 175);
/* oklch */ color: oklch(40.3% 0.196 273.8);
Tailwind
colors: {
  custom: {
    50: '#7c68c8',
    500: '#302eaf',
    950: '#000000',
  },
}
SCSS
$custom: #302eaf;
$custom-light: #7c68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#302eaf",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 240.93,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40276,
    "c": 0.19626,
    "h": 273.8
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#302EAF
secondary
#C3C574
accent
#E246DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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