#304262#304262

#304262 is a dark, muted blue. Relative luminance 0.054; OKLCH L 37.9% C 0.060 H 261.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#304262
RGBrgb(48, 66, 98)
HSLhsl(218, 34%, 29%)
HSVhsv(218, 51%, 38%)
CMYKcmyk(51%, 32.7%, 0%, 61.6%)
CIE-LABlab(27.86, 2.81, -21.09)
CIE-LCHlch(27.86, 21.28, 277.59°)
OKLaboklab(37.89% -0.0089 -0.0592)
OKLCHoklch(37.89% 0.06 261.5)
XYZxyz(5.3710, 5.4063, 12.3134)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304262 #625030
analogous
#305B62 #304262 #373062
triadic
#304262 #623042 #426230
tetradic
#304262 #62305B #625030 #306237
square
#304262 #62305B #625030 #306237
split-complementary
#304262 #623730 #5B6230
monochromatic
#0A0E15 #1C2639 #304262 #445E8B #5D7BB0

Accessibility & contrast

On white

10.09
#304262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#304262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304262
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304262#FFFFFF#000000##FFFFFF
##3042621.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364463
Deuteranopia (green-blind)
#304061
Tritanopia (blue-blind)
#1B494D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304262;
/* rgb */ color: rgb(48, 66, 98);
/* oklch */ color: oklch(37.9% 0.060 261.5);
Tailwind
colors: {
  custom: {
    50: '#6b768f',
    500: '#304262',
    950: '#000000',
  },
}
SCSS
$custom: #304262;
$custom-light: #6b768f;
$custom-dark: #000000;
JSON
{
  "hex": "#304262",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 98
  },
  "hsl": {
    "h": 218.4,
    "s": 34.247,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37893,
    "c": 0.05983,
    "h": 261.5
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#304262
secondary
#937F5A
accent
#A35DCA
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #304262

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

Preview Lab → · Contrast checker → · Palette generator →

#304262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva