#212783#212783

#212783 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.151 H 272.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#212783
RGBrgb(33, 39, 131)
HSLhsl(236, 60%, 32%)
HSVhsv(236, 75%, 51%)
CMYKcmyk(74.8%, 70.2%, 0%, 48.6%)
CIE-LABlab(21.63, 30.61, -52.20)
CIE-LCHlch(21.63, 60.51, 300.38°)
OKLaboklab(33.69% 0.0057 -0.151)
OKLCHoklch(33.69% 0.151 272.2)
XYZxyz(5.4481, 3.4125, 21.8399)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212783 #837D21
analogous
#215883 #212783 #4C2183
triadic
#212783 #832127 #278321
tetradic
#212783 #832158 #837D21 #21834C
square
#212783 #832158 #837D21 #21834C
split-complementary
#212783 #834C21 #588321
monochromatic
#080A21 #151852 #212783 #2D36B4 #4C55D2

Accessibility & contrast

On white

12.48
#212783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212783
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212783#FFFFFF#000000##FFFFFF
##2127831.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212783;
/* rgb */ color: rgb(33, 39, 131);
/* oklch */ color: oklch(33.7% 0.151 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c61a8',
    500: '#212783',
    950: '#000000',
  },
}
SCSS
$custom: #212783;
$custom-light: #6c61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#212783",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 236.327,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.15107,
    "h": 272.2
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#212783
secondary
#B5AF4B
accent
#D945E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212783

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

Preview Lab → · Contrast checker → · Palette generator →

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