#304175#304175

#304175 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.091 H 268.3°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#304175
RGBrgb(48, 65, 117)
HSLhsl(225, 42%, 32%)
HSVhsv(225, 59%, 46%)
CMYKcmyk(59%, 44.4%, 0%, 54.1%)
CIE-LABlab(28.62, 10.21, -31.99)
CIE-LCHlch(28.62, 33.58, 287.70°)
OKLaboklab(38.83% -0.0027 -0.0909)
OKLCHoklch(38.83% 0.091 268.3)
XYZxyz(6.3190, 5.6928, 17.5920)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304175 #756430
analogous
#306475 #304175 #413075
triadic
#304175 #753041 #417530
tetradic
#304175 #753064 #756430 #307541
square
#304175 #753064 #756430 #307541
split-complementary
#304175 #754130 #647530
monochromatic
#0C111E #1E294A #304175 #4259A0 #6178BE

Accessibility & contrast

On white

9.82
#304175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#304175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304175
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304175#FFFFFF#000000##FFFFFF
##3041751.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4777
Deuteranopia (green-blind)
#224174
Tritanopia (blue-blind)
#044C55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304175;
/* rgb */ color: rgb(48, 65, 117);
/* oklch */ color: oklch(38.8% 0.091 268.3);
Tailwind
colors: {
  custom: {
    50: '#6e759d',
    500: '#304175',
    950: '#000000',
  },
}
SCSS
$custom: #304175;
$custom-light: #6e759d;
$custom-dark: #000000;
JSON
{
  "hex": "#304175",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 117
  },
  "hsl": {
    "h": 225.217,
    "s": 41.818,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.09099,
    "h": 268.3
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#304175
secondary
#A5935B
accent
#B356D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304175

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

Preview Lab → · Contrast checker → · Palette generator →

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