#302FAB#302FAB

#302FAB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.190 H 274.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#302FAB
RGBrgb(48, 47, 171)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 67%)
CMYKcmyk(71.9%, 72.5%, 0%, 32.9%)
CIE-LABlab(28.38, 41.42, -65.63)
CIE-LCHlch(28.38, 77.61, 302.26°)
OKLaboklab(40.01% 0.0132 -0.1898)
OKLCHoklch(40.01% 0.19 274)
XYZxyz(9.5837, 5.6007, 39.0962)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FAB #AAAB2F
analogous
#2F6CAB #302FAB #6E2FAB
triadic
#302FAB #AB302F #2FAB30
tetradic
#302FAB #AB2F6C #AAAB2F #2FAB6E
square
#302FAB #AB2F6C #AAAB2F #2FAB6E
split-complementary
#302FAB #AB6E2F #6CAB2F
monochromatic
#15154B #23227B #302FAB #4B4ACD #7B7ADA

Accessibility & contrast

On white

9.90
#302FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#302FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FAB
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FAB#FFFFFF#000000##FFFFFF
##302FAB1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302fab;
/* rgb */ color: rgb(48, 47, 171);
/* oklch */ color: oklch(40.0% 0.190 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b69c5',
    500: '#302fab',
    950: '#000000',
  },
}
SCSS
$custom: #302fab;
$custom-light: #7b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302fab",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 240.484,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40012,
    "c": 0.19026,
    "h": 274
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

primary
#302FAB
secondary
#C2C373
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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