#302F9A#302F9A

#302F9A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.168 H 275.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#302F9A
RGBrgb(48, 47, 154)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 69%, 60%)
CMYKcmyk(68.8%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.72, 35.60, -58.07)
CIE-LCHlch(26.72, 68.11, 301.51°)
OKLaboklab(38.31% 0.0158 -0.1677)
OKLCHoklch(38.31% 0.168 275.4)
XYZxyz(8.0663, 4.9938, 31.1044)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9A #999A2F
analogous
#2F649A #302F9A #662F9A
triadic
#302F9A #9A302F #2F9A30
tetradic
#302F9A #9A2F64 #999A2F #2F9A66
square
#302F9A #9A2F64 #999A2F #2F9A66
split-complementary
#302F9A #9A662F #649A2F
monochromatic
#13123C #21216B #302F9A #4241C5 #7170D3

Accessibility & contrast

On white

10.51
#302F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#302F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F9A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9A#FFFFFF#000000##FFFFFF
##302F9A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302f9a;
/* rgb */ color: rgb(48, 47, 154);
/* oklch */ color: oklch(38.3% 0.168 275.4);
Tailwind
colors: {
  custom: {
    50: '#7768b9',
    500: '#302f9a',
    950: '#000000',
  },
}
SCSS
$custom: #302f9a;
$custom-light: #7768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9a",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 240.561,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38313,
    "c": 0.16845,
    "h": 275.4
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#302F9A
secondary
#BABB6A
accent
#DD4BDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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