#284297#284297

#284297 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.143 H 267.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#284297
RGBrgb(40, 66, 151)
HSLhsl(226, 58%, 37%)
HSVhsv(226, 74%, 59%)
CMYKcmyk(73.5%, 56.3%, 0%, 40.8%)
CIE-LABlab(30.83, 20.91, -49.54)
CIE-LCHlch(30.83, 53.77, 292.89°)
OKLaboklab(41.15% -0.0075 -0.1427)
OKLCHoklch(41.15% 0.143 267)
XYZxyz(8.4073, 6.5810, 30.0993)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284297 #977D28
analogous
#287997 #284297 #462897
triadic
#284297 #972842 #429728
tetradic
#284297 #972879 #977D28 #289746
square
#284297 #972879 #977D28 #289746
split-complementary
#284297 #974628 #799728
monochromatic
#0E1836 #1B2D67 #284297 #3557C7 #647ED6

Accessibility & contrast

On white

9.07
#284297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#284297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284297
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284297#FFFFFF#000000##FFFFFF
##2842971.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #284297;
/* rgb */ color: rgb(40, 66, 151);
/* oklch */ color: oklch(41.1% 0.143 267.0);
Tailwind
colors: {
  custom: {
    50: '#7275b6',
    500: '#284297',
    950: '#000000',
  },
}
SCSS
$custom: #284297;
$custom-light: #7275b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284297",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 225.946,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41147,
    "c": 0.14291,
    "h": 267
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#284297
secondary
#BCA65F
accent
#BD46E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284297

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

Preview Lab → · Contrast checker → · Palette generator →

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