#283161#283161

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

Color values

HEX#283161
RGBrgb(40, 49, 97)
HSLhsl(231, 42%, 27%)
HSVhsv(231, 59%, 38%)
CMYKcmyk(58.8%, 49.5%, 0%, 62%)
CIE-LABlab(21.98, 12.07, -29.78)
CIE-LCHlch(21.98, 32.13, 292.07°)
OKLaboklab(33.2% 0.0044 -0.0848)
OKLCHoklch(33.2% 0.085 273)
XYZxyz(4.1304, 3.5105, 11.7669)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283161 #615828
analogous
#284E61 #283161 #3C2861
triadic
#283161 #612831 #316128
tetradic
#283161 #61284E #615828 #28613C
square
#283161 #61284E #615828 #28613C
split-complementary
#283161 #613C28 #4E6128
monochromatic
#090B16 #161B36 #283161 #3A478C #4E5EB6

Accessibility & contrast

On white

12.34
#283161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#283161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283161
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283161#FFFFFF#000000##FFFFFF
##2831611.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3763
Deuteranopia (green-blind)
#143260
Tritanopia (blue-blind)
#0A3C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #283161;
/* rgb */ color: rgb(40, 49, 97);
/* oklch */ color: oklch(33.2% 0.085 273.0);
Tailwind
colors: {
  custom: {
    50: '#67688e',
    500: '#283161',
    950: '#000000',
  },
}
SCSS
$custom: #283161;
$custom-light: #67688e;
$custom-dark: #000000;
JSON
{
  "hex": "#283161",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 230.526,
    "s": 41.606,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33195,
    "c": 0.08494,
    "h": 273
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#283161
secondary
#948951
accent
#BE56D1
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #283161

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

Preview Lab → · Contrast checker → · Palette generator →

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