#282F94#282F94

#282F94 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.163 H 272.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#282F94
RGBrgb(40, 47, 148)
HSLhsl(236, 57%, 37%)
HSVhsv(236, 73%, 58%)
CMYKcmyk(73%, 68.2%, 0%, 42%)
CIE-LABlab(25.63, 32.47, -56.20)
CIE-LCHlch(25.63, 64.90, 300.02°)
OKLaboklab(37.21% 0.0068 -0.1624)
OKLCHoklch(37.21% 0.163 272.4)
XYZxyz(7.2351, 4.6215, 28.5220)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F94 #948D28
analogous
#286594 #282F94 #572894
triadic
#282F94 #94282F #2F9428
tetradic
#282F94 #942865 #948D28 #289457
square
#282F94 #942865 #948D28 #289457
split-complementary
#282F94 #945728 #659428
monochromatic
#0E1034 #1B2064 #282F94 #353EC4 #6269D5

Accessibility & contrast

On white

10.91
#282F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#282F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F94
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F94#FFFFFF#000000##FFFFFF
##282F941.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003892
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282f94;
/* rgb */ color: rgb(40, 47, 148);
/* oklch */ color: oklch(37.2% 0.163 272.4);
Tailwind
colors: {
  custom: {
    50: '#7268b4',
    500: '#282f94',
    950: '#000000',
  },
}
SCSS
$custom: #282f94;
$custom-light: #7268b4;
$custom-dark: #000000;
JSON
{
  "hex": "#282f94",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 236.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.16258,
    "h": 272.4
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#282F94
secondary
#BAB45E
accent
#D747E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282F94

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

Preview Lab → · Contrast checker → · Palette generator →

#282F94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva