#283A78#283A78

#283A78 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.108 H 268.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#283A78
RGBrgb(40, 58, 120)
HSLhsl(227, 50%, 31%)
HSVhsv(227, 67%, 47%)
CMYKcmyk(66.7%, 51.7%, 0%, 52.9%)
CIE-LABlab(26.25, 14.46, -37.71)
CIE-LCHlch(26.25, 40.39, 290.99°)
OKLaboklab(36.95% -0.0028 -0.108)
OKLCHoklch(36.95% 0.108 268.5)
XYZxyz(5.7771, 4.8328, 18.3940)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A78 #786628
analogous
#286278 #283A78 #3E2878
triadic
#283A78 #78283A #3A7828
tetradic
#283A78 #782862 #786628 #28783E
square
#283A78 #782862 #786628 #28783E
split-complementary
#283A78 #783E28 #627828
monochromatic
#090E1C #19244A #283A78 #3750A6 #546EC6

Accessibility & contrast

On white

10.68
#283A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#283A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A78
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A78#FFFFFF#000000##FFFFFF
##283A781.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#053B77
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #283a78;
/* rgb */ color: rgb(40, 58, 120);
/* oklch */ color: oklch(37.0% 0.108 268.5);
Tailwind
colors: {
  custom: {
    50: '#6b6f9f',
    500: '#283a78',
    950: '#000000',
  },
}
SCSS
$custom: #283a78;
$custom-light: #6b6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#283a78",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 120
  },
  "hsl": {
    "h": 226.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36954,
    "c": 0.10807,
    "h": 268.5
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#283A78
secondary
#AA9652
accent
#BA4EDA
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #283A78

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

Preview Lab → · Contrast checker → · Palette generator →

#283A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva