#283181#283181

#283181 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.134 H 272.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#283181
RGBrgb(40, 49, 129)
HSLhsl(234, 53%, 33%)
HSVhsv(234, 69%, 51%)
CMYKcmyk(69%, 62%, 0%, 49.4%)
CIE-LABlab(24.42, 24.11, -46.35)
CIE-LCHlch(24.42, 52.24, 297.49°)
OKLaboklab(35.8% 0.0064 -0.1335)
OKLCHoklch(35.8% 0.134 272.8)
XYZxyz(5.9345, 4.2322, 21.2688)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283181 #817828
analogous
#285D81 #283181 #4B2881
triadic
#283181 #812831 #318128
tetradic
#283181 #81285D #817828 #28814B
square
#283181 #81285D #817828 #28814B
split-complementary
#283181 #814B28 #5D8128
monochromatic
#0B0E24 #1A1F52 #283181 #3643B0 #5864CB

Accessibility & contrast

On white

11.37
#283181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#283181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283181
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283181#FFFFFF#000000##FFFFFF
##2831811.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #283181;
/* rgb */ color: rgb(40, 49, 129);
/* oklch */ color: oklch(35.8% 0.134 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e69a6',
    500: '#283181',
    950: '#000000',
  },
}
SCSS
$custom: #283181;
$custom-light: #6e69a6;
$custom-dark: #000000;
JSON
{
  "hex": "#283181",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 233.933,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35803,
    "c": 0.1337,
    "h": 272.8
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#283181
secondary
#B0A754
accent
#CD4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #283181

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

Preview Lab → · Contrast checker → · Palette generator →

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