#303E6F#303E6F

#303E6F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.086 H 269.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#303E6F
RGBrgb(48, 62, 111)
HSLhsl(227, 40%, 31%)
HSVhsv(227, 57%, 44%)
CMYKcmyk(56.8%, 44.1%, 0%, 56.5%)
CIE-LABlab(27.36, 10.08, -30.21)
CIE-LCHlch(27.36, 31.85, 288.46°)
OKLaboklab(37.74% -0.0001 -0.0858)
OKLCHoklch(37.74% 0.086 269.9)
XYZxyz(5.8098, 5.2209, 15.7374)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E6F #6F6130
analogous
#305D6F #303E6F #41306F
triadic
#303E6F #6F303E #3E6F30
tetradic
#303E6F #6F305D #6F6130 #306F41
square
#303E6F #6F305D #6F6130 #306F41
split-complementary
#303E6F #6F4130 #5D6F30
monochromatic
#0B0E1A #1E2644 #303E6F #42569A #5F74BA

Accessibility & contrast

On white

10.27
#303E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#303E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E6F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E6F#FFFFFF#000000##FFFFFF
##303E6F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294471
Deuteranopia (green-blind)
#223E6E
Tritanopia (blue-blind)
#104951
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303e6f;
/* rgb */ color: rgb(48, 62, 111);
/* oklch */ color: oklch(37.7% 0.086 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d7398',
    500: '#303e6f',
    950: '#000000',
  },
}
SCSS
$custom: #303e6f;
$custom-light: #6d7398;
$custom-dark: #000000;
JSON
{
  "hex": "#303e6f",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 111
  },
  "hsl": {
    "h": 226.667,
    "s": 39.623,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37738,
    "c": 0.08576,
    "h": 269.9
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#303E6F
secondary
#A0915B
accent
#B558D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #303E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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