#282F9C#282F9C

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

Color values

HEX#282F9C
RGBrgb(40, 47, 156)
HSLhsl(236, 59%, 38%)
HSVhsv(236, 74%, 61%)
CMYKcmyk(74.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.40, 35.36, -59.83)
CIE-LCHlch(26.40, 69.50, 300.58°)
OKLaboklab(38.01% 0.0059 -0.1731)
OKLCHoklch(38.01% 0.173 272)
XYZxyz(7.8903, 4.8836, 31.9728)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F9C #9C9528
analogous
#28699C #282F9C #5B289C
triadic
#282F9C #9C282F #2F9C28
tetradic
#282F9C #9C2869 #9C9528 #289C5B
square
#282F9C #9C2869 #9C9528 #289C5B
split-complementary
#282F9C #9C5B28 #699C28
monochromatic
#0F123B #1C206B #282F9C #363FCB #676DD8

Accessibility & contrast

On white

10.62
#282F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#282F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F9C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F9C#FFFFFF#000000##FFFFFF
##282F9C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #282f9c;
/* rgb */ color: rgb(40, 47, 156);
/* oklch */ color: oklch(38.0% 0.173 272.0);
Tailwind
colors: {
  custom: {
    50: '#7468ba',
    500: '#282f9c',
    950: '#000000',
  },
}
SCSS
$custom: #282f9c;
$custom-light: #7468ba;
$custom-dark: #000000;
JSON
{
  "hex": "#282f9c",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 236.379,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38008,
    "c": 0.17316,
    "h": 272
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#282F9C
secondary
#BEB862
accent
#D945E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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