#284181#284181

#284181 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.112 H 265.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#284181
RGBrgb(40, 65, 129)
HSLhsl(223, 53%, 33%)
HSVhsv(223, 69%, 51%)
CMYKcmyk(69%, 49.6%, 0%, 49.4%)
CIE-LABlab(28.94, 13.09, -39.03)
CIE-LCHlch(28.94, 41.17, 288.55°)
OKLaboklab(39.2% -0.0088 -0.1118)
OKLCHoklch(39.2% 0.112 265.5)
XYZxyz(6.7264, 5.8160, 21.5327)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284181 #816828
analogous
#286D81 #284181 #3B2881
triadic
#284181 #812841 #418128
tetradic
#284181 #81286D #816828 #28813B
square
#284181 #81286D #816828 #28813B
split-complementary
#284181 #813B28 #6D8128
monochromatic
#0B1224 #1A2952 #284181 #3659B0 #5878CB

Accessibility & contrast

On white

9.71
#284181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#284181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284181
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284181#FFFFFF#000000##FFFFFF
##2841811.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4983
Deuteranopia (green-blind)
#0B4080
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #284181;
/* rgb */ color: rgb(40, 65, 129);
/* oklch */ color: oklch(39.2% 0.112 265.5);
Tailwind
colors: {
  custom: {
    50: '#6d75a6',
    500: '#284181',
    950: '#000000',
  },
}
SCSS
$custom: #284181;
$custom-light: #6d75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#284181",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 223.146,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39204,
    "c": 0.11217,
    "h": 265.5
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#284181
secondary
#B09754
accent
#B44CDC
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #284181

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

Preview Lab → · Contrast checker → · Palette generator →

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