#283F8C#283F8C

#283F8C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.131 H 267.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#283F8C
RGBrgb(40, 63, 140)
HSLhsl(226, 56%, 35%)
HSVhsv(226, 71%, 55%)
CMYKcmyk(71.4%, 55%, 0%, 45.1%)
CIE-LABlab(29.16, 18.72, -45.51)
CIE-LCHlch(29.16, 49.21, 292.35°)
OKLaboklab(39.62% -0.0057 -0.1309)
OKLCHoklch(39.62% 0.131 267.5)
XYZxyz(7.3846, 5.8988, 25.5553)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F8C #8C7528
analogous
#28718C #283F8C #43288C
triadic
#283F8C #8C283F #3F8C28
tetradic
#283F8C #8C2871 #8C7528 #288C43
square
#283F8C #8C2871 #8C7528 #288C43
split-complementary
#283F8C #8C4328 #718C28
monochromatic
#0D142D #1A2A5C #283F8C #3654BC #5E78D1

Accessibility & contrast

On white

9.63
#283F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#283F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F8C
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F8C#FFFFFF#000000##FFFFFF
##283F8C1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #283f8c;
/* rgb */ color: rgb(40, 63, 140);
/* oklch */ color: oklch(39.6% 0.131 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f73ae',
    500: '#283f8c',
    950: '#000000',
  },
}
SCSS
$custom: #283f8c;
$custom-light: #6f73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#283f8c",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 140
  },
  "hsl": {
    "h": 226.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39618,
    "c": 0.13103,
    "h": 267.5
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#283F8C
secondary
#B6A15A
accent
#BC49DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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