#212765#212765

#212765 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.8% C 0.108 H 274.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#212765
RGBrgb(33, 39, 101)
HSLhsl(235, 51%, 26%)
HSVhsv(235, 67%, 40%)
CMYKcmyk(67.3%, 61.4%, 0%, 60.4%)
CIE-LABlab(18.86, 19.22, -37.46)
CIE-LCHlch(18.86, 42.10, 297.16°)
OKLaboklab(30.81% 0.0076 -0.1077)
OKLCHoklch(30.81% 0.108 274)
XYZxyz(3.7009, 2.7136, 12.6382)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212765 #655F21
analogous
#214965 #212765 #3D2165
triadic
#212765 #652127 #276521
tetradic
#212765 #652149 #655F21 #21653D
square
#212765 #652149 #655F21 #21653D
split-complementary
#212765 #653D21 #496521
monochromatic
#080917 #121537 #212765 #303993 #404BC1

Accessibility & contrast

On white

13.61
#212765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212765
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212765#FFFFFF#000000##FFFFFF
##2127651.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#003641
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212765;
/* rgb */ color: rgb(33, 39, 101);
/* oklch */ color: oklch(30.8% 0.108 274.0);
Tailwind
colors: {
  custom: {
    50: '#656191',
    500: '#212765',
    950: '#000000',
  },
}
SCSS
$custom: #212765;
$custom-light: #656191;
$custom-dark: #000000;
JSON
{
  "hex": "#212765",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 101
  },
  "hsl": {
    "h": 234.706,
    "s": 50.746,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30809,
    "c": 0.10799,
    "h": 274
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#212765
secondary
#999249
accent
#CE4EDA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212765

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

Preview Lab → · Contrast checker → · Palette generator →

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