#282F9B#282F9B

#282F9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.172 H 272.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#282F9B
RGBrgb(40, 47, 155)
HSLhsl(236, 59%, 38%)
HSVhsv(236, 74%, 61%)
CMYKcmyk(74.2%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.30, 35.00, -59.38)
CIE-LCHlch(26.30, 68.93, 300.51°)
OKLaboklab(37.91% 0.0061 -0.1718)
OKLCHoklch(37.91% 0.172 272)
XYZxyz(7.8060, 4.8499, 31.5287)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F9B #9B9428
analogous
#28689B #282F9B #5A289B
triadic
#282F9B #9B282F #2F9B28
tetradic
#282F9B #9B2868 #9B9428 #289B5A
square
#282F9B #9B2868 #9B9428 #289B5A
split-complementary
#282F9B #9B5A28 #689B28
monochromatic
#0F113A #1B206A #282F9B #353ECB #666DD7

Accessibility & contrast

On white

10.66
#282F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#282F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F9B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F9B#FFFFFF#000000##FFFFFF
##282F9B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #282f9b;
/* rgb */ color: rgb(40, 47, 155);
/* oklch */ color: oklch(37.9% 0.172 272.0);
Tailwind
colors: {
  custom: {
    50: '#7468ba',
    500: '#282f9b',
    950: '#000000',
  },
}
SCSS
$custom: #282f9b;
$custom-light: #7468ba;
$custom-dark: #000000;
JSON
{
  "hex": "#282f9b",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 236.348,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.17186,
    "h": 272
  },
  "luminance": 0.04851
}

Semantic roles & 50–950 ramp

primary
#282F9B
secondary
#BDB861
accent
#D946E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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