#282C9B#282C9B

#282C9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.175 H 272.6°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#282C9B
RGBrgb(40, 44, 155)
HSLhsl(238, 59%, 38%)
HSVhsv(238, 74%, 61%)
CMYKcmyk(74.2%, 71.6%, 0%, 39.2%)
CIE-LABlab(25.62, 36.87, -60.51)
CIE-LCHlch(25.62, 70.85, 301.35°)
OKLaboklab(37.41% 0.0078 -0.175)
OKLCHoklch(37.41% 0.175 272.6)
XYZxyz(7.6902, 4.6183, 31.4901)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C9B #9B9728
analogous
#28659B #282C9B #5D289B
triadic
#282C9B #9B282C #2C9B28
tetradic
#282C9B #9B2865 #9B9728 #289B5D
square
#282C9B #9B2865 #9B9728 #289B5D
split-complementary
#282C9B #9B5D28 #659B28
monochromatic
#0F103A #1B1E6A #282C9B #353ACB #666AD7

Accessibility & contrast

On white

10.92
#282C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#282C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C9B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C9B#FFFFFF#000000##FFFFFF
##282C9B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282c9b;
/* rgb */ color: rgb(40, 44, 155);
/* oklch */ color: oklch(37.4% 0.175 272.6);
Tailwind
colors: {
  custom: {
    50: '#7466ba',
    500: '#282c9b',
    950: '#000000',
  },
}
SCSS
$custom: #282c9b;
$custom-light: #7466ba;
$custom-dark: #000000;
JSON
{
  "hex": "#282c9b",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 237.913,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.17521,
    "h": 272.6
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#282C9B
secondary
#BDBA61
accent
#DD46E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282C9B

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

Preview Lab → · Contrast checker → · Palette generator →

#282C9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva