#302FAF#302FAF

#302FAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.195 H 273.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#302FAF
RGBrgb(48, 47, 175)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(72.6%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.79, 42.76, -67.36)
CIE-LCHlch(28.79, 79.79, 302.41°)
OKLaboklab(40.42% 0.0125 -0.1948)
OKLCHoklch(40.42% 0.195 273.7)
XYZxyz(9.9707, 5.7556, 41.1346)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FAF #AEAF2F
analogous
#2F6EAF #302FAF #702FAF
triadic
#302FAF #AF302F #2FAF30
tetradic
#302FAF #AF2F6E #AEAF2F #2FAF70
square
#302FAF #AF2F6E #AEAF2F #2FAF70
split-complementary
#302FAF #AF702F #6EAF2F
monochromatic
#16154F #23227F #302FAF #4D4CCF #7D7CDC

Accessibility & contrast

On white

9.76
#302FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#302FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FAF
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FAF#FFFFFF#000000##FFFFFF
##302FAF1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302faf;
/* rgb */ color: rgb(48, 47, 175);
/* oklch */ color: oklch(40.4% 0.195 273.7);
Tailwind
colors: {
  custom: {
    50: '#7c69c8',
    500: '#302faf',
    950: '#000000',
  },
}
SCSS
$custom: #302faf;
$custom-light: #7c69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#302faf",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 240.469,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40423,
    "c": 0.19524,
    "h": 273.7
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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