#282F52#282F52

#282F52 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.063 H 273.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#282F52
RGBrgb(40, 47, 82)
HSLhsl(230, 34%, 24%)
HSVhsv(230, 51%, 32%)
CMYKcmyk(51.2%, 42.7%, 0%, 67.8%)
CIE-LABlab(20.41, 8.02, -22.35)
CIE-LCHlch(20.41, 23.75, 289.74°)
OKLaboklab(31.69% 0.0041 -0.0631)
OKLCHoklch(31.69% 0.063 273.7)
XYZxyz(3.4141, 3.0932, 8.3981)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F52 #524B28
analogous
#284452 #282F52 #362852
triadic
#282F52 #52282F #2F5228
tetradic
#282F52 #522844 #524B28 #285236
square
#282F52 #522844 #524B28 #285236
split-complementary
#282F52 #523628 #445228
monochromatic
#0A0C15 #141729 #282F52 #3C477B #505EA4

Accessibility & contrast

On white

12.97
#282F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#282F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F52
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F52#FFFFFF#000000##FFFFFF
##282F521.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223353
Deuteranopia (green-blind)
#1E3051
Tritanopia (blue-blind)
#18363C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #282f52;
/* rgb */ color: rgb(40, 47, 82);
/* oklch */ color: oklch(31.7% 0.063 273.7);
Tailwind
colors: {
  custom: {
    50: '#656783',
    500: '#282f52',
    950: '#000000',
  },
}
SCSS
$custom: #282f52;
$custom-light: #656783;
$custom-dark: #000000;
JSON
{
  "hex": "#282f52",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 230,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31686,
    "c": 0.06323,
    "h": 273.7
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#282F52
secondary
#857C51
accent
#B85DCB
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #282F52

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

Preview Lab → · Contrast checker → · Palette generator →

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