#302F9B#302F9B

#302F9B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.170 H 275.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#302F9B
RGBrgb(48, 47, 155)
HSLhsl(241, 53%, 40%)
HSVhsv(241, 70%, 61%)
CMYKcmyk(69%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.81, 35.95, -58.52)
CIE-LCHlch(26.81, 68.68, 301.56°)
OKLaboklab(38.41% 0.0156 -0.169)
OKLCHoklch(38.41% 0.17 275.3)
XYZxyz(8.1499, 5.0272, 31.5448)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9B #9A9B2F
analogous
#2F649B #302F9B #662F9B
triadic
#302F9B #9B302F #2F9B30
tetradic
#302F9B #9B2F64 #9A9B2F #2F9B66
square
#302F9B #9B2F64 #9A9B2F #2F9B66
split-complementary
#302F9B #9B662F #649B2F
monochromatic
#13133D #21216C #302F9B #4342C6 #7271D4

Accessibility & contrast

On white

10.47
#302F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F9B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9B#FFFFFF#000000##FFFFFF
##302F9B1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302f9b;
/* rgb */ color: rgb(48, 47, 155);
/* oklch */ color: oklch(38.4% 0.170 275.3);
Tailwind
colors: {
  custom: {
    50: '#7768ba',
    500: '#302f9b',
    950: '#000000',
  },
}
SCSS
$custom: #302f9b;
$custom-light: #7768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9b",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 240.556,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.16976,
    "h": 275.3
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#302F9B
secondary
#BBBB6A
accent
#DD4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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