#303E7B#303E7B

#303E7B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.104 H 271.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#303E7B
RGBrgb(48, 62, 123)
HSLhsl(229, 44%, 34%)
HSVhsv(229, 61%, 48%)
CMYKcmyk(61%, 49.6%, 0%, 51.8%)
CIE-LABlab(28.12, 14.45, -36.57)
CIE-LCHlch(28.12, 39.32, 291.56°)
OKLaboklab(38.57% 0.0019 -0.1044)
OKLCHoklch(38.57% 0.104 271.1)
XYZxyz(6.5155, 5.5032, 19.4539)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E7B #7B6D30
analogous
#30637B #303E7B #47307B
triadic
#303E7B #7B303E #3E7B30
tetradic
#303E7B #7B3063 #7B6D30 #307B47
square
#303E7B #7B3063 #7B6D30 #307B47
split-complementary
#303E7B #7B4730 #637B30
monochromatic
#0E1223 #1F284F #303E7B #4154A7 #6375C2

Accessibility & contrast

On white

10.00
#303E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#303E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E7B
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E7B#FFFFFF#000000##FFFFFF
##303E7B1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#143F7A
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #303e7b;
/* rgb */ color: rgb(48, 62, 123);
/* oklch */ color: oklch(38.6% 0.104 271.1);
Tailwind
colors: {
  custom: {
    50: '#7073a1',
    500: '#303e7b',
    950: '#000000',
  },
}
SCSS
$custom: #303e7b;
$custom-light: #7073a1;
$custom-dark: #000000;
JSON
{
  "hex": "#303e7b",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 123
  },
  "hsl": {
    "h": 228.8,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38573,
    "c": 0.10446,
    "h": 271.1
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#303E7B
secondary
#A99B5D
accent
#BC54D4
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #303E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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