#282A9C#282A9C

#282A9C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.179 H 272.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#282A9C
RGBrgb(40, 42, 156)
HSLhsl(239, 59%, 38%)
HSVhsv(239, 74%, 61%)
CMYKcmyk(74.4%, 73.1%, 0%, 38.8%)
CIE-LABlab(25.28, 38.43, -61.67)
CIE-LCHlch(25.28, 72.67, 301.93°)
OKLaboklab(37.2% 0.0088 -0.1784)
OKLCHoklch(37.2% 0.179 272.8)
XYZxyz(7.7018, 4.5066, 31.9100)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A9C #9C9A28
analogous
#28649C #282A9C #60289C
triadic
#282A9C #9C282A #2A9C28
tetradic
#282A9C #9C2864 #9C9A28 #289C60
square
#282A9C #9C2864 #9C9A28 #289C60
split-complementary
#282A9C #9C6028 #649C28
monochromatic
#0F103B #1C1D6B #282A9C #3638CB #6768D8

Accessibility & contrast

On white

11.04
#282A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#282A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A9C
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A9C#FFFFFF#000000##FFFFFF
##282A9C1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #282a9c;
/* rgb */ color: rgb(40, 42, 156);
/* oklch */ color: oklch(37.2% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#7565ba',
    500: '#282a9c',
    950: '#000000',
  },
}
SCSS
$custom: #282a9c;
$custom-light: #7565ba;
$custom-dark: #000000;
JSON
{
  "hex": "#282a9c",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 238.966,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37203,
    "c": 0.17865,
    "h": 272.8
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#282A9C
secondary
#BEBC62
accent
#E045E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #282A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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