#283A74#283A74

#283A74 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.102 H 268.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#283A74
RGBrgb(40, 58, 116)
HSLhsl(226, 49%, 31%)
HSVhsv(226, 66%, 45%)
CMYKcmyk(65.5%, 50%, 0%, 54.5%)
CIE-LABlab(25.97, 12.93, -35.62)
CIE-LCHlch(25.97, 37.90, 289.95°)
OKLaboklab(36.65% -0.0033 -0.1019)
OKLCHoklch(36.65% 0.102 268.1)
XYZxyz(5.5394, 4.7377, 17.1422)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A74 #746228
analogous
#286074 #283A74 #3C2874
triadic
#283A74 #74283A #3A7428
tetradic
#283A74 #742860 #746228 #28743C
square
#283A74 #742860 #746228 #28743C
split-complementary
#283A74 #743C28 #607428
monochromatic
#090C19 #182346 #283A74 #3851A2 #536EC4

Accessibility & contrast

On white

10.78
#283A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#283A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A74
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A74#FFFFFF#000000##FFFFFF
##283A741.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4176
Deuteranopia (green-blind)
#0E3A73
Tritanopia (blue-blind)
#004751
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #283a74;
/* rgb */ color: rgb(40, 58, 116);
/* oklch */ color: oklch(36.7% 0.102 268.1);
Tailwind
colors: {
  custom: {
    50: '#6a6f9c',
    500: '#283a74',
    950: '#000000',
  },
}
SCSS
$custom: #283a74;
$custom-light: #6a6f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#283a74",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 116
  },
  "hsl": {
    "h": 225.789,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36652,
    "c": 0.10196,
    "h": 268.1
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#283A74
secondary
#A69252
accent
#B850D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #283A74

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

Preview Lab → · Contrast checker → · Palette generator →

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