#302CAF#302CAF

#302CAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.198 H 274.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#302CAF
RGBrgb(48, 44, 175)
HSLhsl(242, 60%, 43%)
HSVhsv(242, 75%, 69%)
CMYKcmyk(72.6%, 74.9%, 0%, 31.4%)
CIE-LABlab(28.18, 44.47, -68.37)
CIE-LCHlch(28.18, 81.56, 303.04°)
OKLaboklab(39.99% 0.014 -0.1977)
OKLCHoklch(39.99% 0.198 274.1)
XYZxyz(9.8549, 5.5239, 41.0960)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CAF #ABAF2C
analogous
#2C69AF #302CAF #712CAF
triadic
#302CAF #AF302C #2CAF30
tetradic
#302CAF #AF2C69 #ABAF2C #2CAF71
square
#302CAF #AF2C69 #ABAF2C #2CAF71
split-complementary
#302CAF #AF712C #69AF2C
monochromatic
#15134D #23207E #302CAF #4C47D1 #7B78DD

Accessibility & contrast

On white

9.98
#302CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#302CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CAF
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CAF#FFFFFF#000000##FFFFFF
##302CAF1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302caf;
/* rgb */ color: rgb(48, 44, 175);
/* oklch */ color: oklch(40.0% 0.198 274.1);
Tailwind
colors: {
  custom: {
    50: '#7c67c8',
    500: '#302caf',
    950: '#000000',
  },
}
SCSS
$custom: #302caf;
$custom-light: #7c67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#302caf",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 241.832,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.3999,
    "c": 0.19825,
    "h": 274.1
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#302CAF
secondary
#C3C572
accent
#E345DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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