#283162#283162

#283162 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.087 H 273.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#283162
RGBrgb(40, 49, 98)
HSLhsl(231, 42%, 27%)
HSVhsv(231, 59%, 38%)
CMYKcmyk(59.2%, 50%, 0%, 61.6%)
CIE-LABlab(22.05, 12.44, -30.32)
CIE-LCHlch(22.05, 32.78, 292.31°)
OKLaboklab(33.27% 0.0045 -0.0864)
OKLCHoklch(33.27% 0.087 273)
XYZxyz(4.1773, 3.5293, 12.0140)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283162 #625928
analogous
#284E62 #283162 #3C2862
triadic
#283162 #622831 #316228
tetradic
#283162 #62284E #625928 #28623C
square
#283162 #62284E #625928 #28623C
split-complementary
#283162 #623C28 #4E6228
monochromatic
#090B16 #161B37 #283162 #3A478D #4E5EB7

Accessibility & contrast

On white

12.31
#283162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#283162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283162
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283162#FFFFFF#000000##FFFFFF
##2831621.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3764
Deuteranopia (green-blind)
#133261
Tritanopia (blue-blind)
#083C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #283162;
/* rgb */ color: rgb(40, 49, 98);
/* oklch */ color: oklch(33.3% 0.087 273.0);
Tailwind
colors: {
  custom: {
    50: '#67688f',
    500: '#283162',
    950: '#000000',
  },
}
SCSS
$custom: #283162;
$custom-light: #67688f;
$custom-dark: #000000;
JSON
{
  "hex": "#283162",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 230.69,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.08655,
    "h": 273
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#283162
secondary
#958A51
accent
#BF56D2
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #283162

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

Preview Lab → · Contrast checker → · Palette generator →

#283162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva