#303E9F#303E9F

#303E9F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.157 H 271.5°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#303E9F
RGBrgb(48, 62, 159)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 62%)
CMYKcmyk(69.8%, 61%, 0%, 37.6%)
CIE-LABlab(30.82, 27.74, -54.40)
CIE-LCHlch(30.82, 61.06, 297.02°)
OKLaboklab(41.45% 0.004 -0.1569)
OKLCHoklch(41.45% 0.157 271.5)
XYZxyz(9.1974, 6.5759, 33.5787)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E9F #9F9130
analogous
#30769F #303E9F #59309F
triadic
#303E9F #9F303E #3E9F30
tetradic
#303E9F #9F3076 #9F9130 #309F59
square
#303E9F #9F3076 #9F9130 #309F59
split-complementary
#303E9F #9F5930 #769F30
monochromatic
#141941 #222C70 #303E9F #4556C7 #7480D5

Accessibility & contrast

On white

9.07
#303E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#303E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E9F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E9F#FFFFFF#000000##FFFFFF
##303E9F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303e9f;
/* rgb */ color: rgb(48, 62, 159);
/* oklch */ color: oklch(41.5% 0.157 271.5);
Tailwind
colors: {
  custom: {
    50: '#7773bc',
    500: '#303e9f',
    950: '#000000',
  },
}
SCSS
$custom: #303e9f;
$custom-light: #7773bc;
$custom-dark: #000000;
JSON
{
  "hex": "#303e9f",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 232.432,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.15691,
    "h": 271.5
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#303E9F
secondary
#BDB36E
accent
#CB4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303E9F

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

Preview Lab → · Contrast checker → · Palette generator →

#303E9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva