#284274#284274

#284274 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.091 H 262.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#284274
RGBrgb(40, 66, 116)
HSLhsl(219, 49%, 31%)
HSVhsv(219, 66%, 45%)
CMYKcmyk(65.5%, 43.1%, 0%, 54.5%)
CIE-LABlab(28.40, 7.42, -31.74)
CIE-LCHlch(28.40, 32.60, 283.16°)
OKLaboklab(38.52% -0.0123 -0.0904)
OKLCHoklch(38.52% 0.091 262.2)
XYZxyz(5.9746, 5.6080, 17.2872)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284274 #745A28
analogous
#286874 #284274 #342874
triadic
#284274 #742842 #427428
tetradic
#284274 #742868 #745A28 #287434
square
#284274 #742868 #745A28 #287434
split-complementary
#284274 #743428 #687428
monochromatic
#090E19 #182846 #284274 #385CA2 #5379C4

Accessibility & contrast

On white

9.90
#284274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#284274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284274
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284274#FFFFFF#000000##FFFFFF
##2842741.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4776
Deuteranopia (green-blind)
#214073
Tritanopia (blue-blind)
#004D55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284274;
/* rgb */ color: rgb(40, 66, 116);
/* oklch */ color: oklch(38.5% 0.091 262.2);
Tailwind
colors: {
  custom: {
    50: '#6a769c',
    500: '#284274',
    950: '#000000',
  },
}
SCSS
$custom: #284274;
$custom-light: #6a769c;
$custom-dark: #000000;
JSON
{
  "hex": "#284274",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 116
  },
  "hsl": {
    "h": 219.474,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.09122,
    "h": 262.2
  },
  "luminance": 0.05608
}

Semantic roles & 50–950 ramp

primary
#284274
secondary
#A68952
accent
#A950D8
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #284274

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

Preview Lab → · Contrast checker → · Palette generator →

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