#284097#284097

#284097 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.145 H 267.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#284097
RGBrgb(40, 64, 151)
HSLhsl(227, 58%, 37%)
HSVhsv(227, 74%, 59%)
CMYKcmyk(73.5%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.28, 22.27, -50.43)
CIE-LCHlch(30.28, 55.13, 293.82°)
OKLaboklab(40.73% -0.0058 -0.1454)
OKLCHoklch(40.73% 0.145 267.7)
XYZxyz(8.2924, 6.3514, 30.0611)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284097 #977F28
analogous
#287897 #284097 #482897
triadic
#284097 #972840 #409728
tetradic
#284097 #972878 #977F28 #289748
square
#284097 #972878 #977F28 #289748
split-complementary
#284097 #974828 #789728
monochromatic
#0E1736 #1B2B67 #284097 #3555C7 #647CD6

Accessibility & contrast

On white

9.25
#284097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#284097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284097
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284097#FFFFFF#000000##FFFFFF
##2840971.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #284097;
/* rgb */ color: rgb(40, 64, 151);
/* oklch */ color: oklch(40.7% 0.145 267.7);
Tailwind
colors: {
  custom: {
    50: '#7274b6',
    500: '#284097',
    950: '#000000',
  },
}
SCSS
$custom: #284097;
$custom-light: #7274b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284097",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 227.027,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.14549,
    "h": 267.7
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#284097
secondary
#BCA85F
accent
#C046E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284097

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

Preview Lab → · Contrast checker → · Palette generator →

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