#28345F#28345F

#28345F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.077 H 270.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#28345F
RGBrgb(40, 52, 95)
HSLhsl(227, 41%, 26%)
HSVhsv(227, 58%, 37%)
CMYKcmyk(57.9%, 45.3%, 0%, 62.7%)
CIE-LABlab(22.77, 9.21, -27.22)
CIE-LCHlch(22.77, 28.73, 288.70°)
OKLaboklab(33.75% 0.0001 -0.0773)
OKLCHoklch(33.75% 0.077 270.1)
XYZxyz(4.1679, 3.7330, 11.3252)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28345F #5F5328
analogous
#28505F #28345F #38285F
triadic
#28345F #5F2834 #345F28
tetradic
#28345F #5F2850 #5F5328 #285F38
square
#28345F #5F2850 #5F5328 #285F38
split-complementary
#28345F #5F3828 #505F28
monochromatic
#090C16 #161C34 #28345F #3A4C8A #4D64B4

Accessibility & contrast

On white

12.02
#28345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#28345F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28345F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28345F#FFFFFF#000000##FFFFFF
##28345F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223961
Deuteranopia (green-blind)
#1B345E
Tritanopia (blue-blind)
#0C3D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28345f;
/* rgb */ color: rgb(40, 52, 95);
/* oklch */ color: oklch(33.8% 0.077 270.1);
Tailwind
colors: {
  custom: {
    50: '#676b8d',
    500: '#28345f',
    950: '#000000',
  },
}
SCSS
$custom: #28345f;
$custom-light: #676b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#28345f",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 226.909,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.07728,
    "h": 270.1
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#28345F
secondary
#928451
accent
#B657D1
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #28345F

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

Preview Lab → · Contrast checker → · Palette generator →

#28345F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva