#284182#284182

#284182 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.114 H 265.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#284182
RGBrgb(40, 65, 130)
HSLhsl(223, 53%, 33%)
HSVhsv(223, 69%, 51%)
CMYKcmyk(69.2%, 50%, 0%, 49%)
CIE-LABlab(29.01, 13.48, -39.55)
CIE-LCHlch(29.01, 41.78, 288.82°)
OKLaboklab(39.28% -0.0087 -0.1133)
OKLCHoklch(39.28% 0.114 265.6)
XYZxyz(6.7932, 5.8428, 21.8845)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284182 #826928
analogous
#286E82 #284182 #3C2882
triadic
#284182 #822841 #418228
tetradic
#284182 #82286E #826928 #28823C
square
#284182 #82286E #826928 #28823C
split-complementary
#284182 #823C28 #6E8228
monochromatic
#0B1224 #1A2A53 #284182 #3658B1 #5979CC

Accessibility & contrast

On white

9.68
#284182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#284182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284182
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284182#FFFFFF#000000##FFFFFF
##2841821.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4984
Deuteranopia (green-blind)
#084181
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #284182;
/* rgb */ color: rgb(40, 65, 130);
/* oklch */ color: oklch(39.3% 0.114 265.6);
Tailwind
colors: {
  custom: {
    50: '#6d75a7',
    500: '#284182',
    950: '#000000',
  },
}
SCSS
$custom: #284182;
$custom-light: #6d75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#284182",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 223.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39279,
    "c": 0.11365,
    "h": 265.6
  },
  "luminance": 0.05843
}

Semantic roles & 50–950 ramp

primary
#284182
secondary
#B19755
accent
#B44BDC
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #284182

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

Preview Lab → · Contrast checker → · Palette generator →

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