#2631B1#2631B1

#2631B1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.198 H 270.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2631B1
RGBrgb(38, 49, 177)
HSLhsl(235, 65%, 42%)
HSVhsv(235, 79%, 69%)
CMYKcmyk(78.5%, 72.3%, 0%, 30.6%)
CIE-LABlab(28.86, 41.36, -68.46)
CIE-LCHlch(28.86, 79.99, 301.14°)
OKLaboklab(40.38% 0.0002 -0.1983)
OKLCHoklch(40.38% 0.198 270)
XYZxyz(9.8307, 5.7819, 42.1844)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2631B1 #B1A626
analogous
#2676B1 #2631B1 #6126B1
triadic
#2631B1 #B12631 #31B126
tetradic
#2631B1 #B12676 #B1A626 #26B161
square
#2631B1 #B12676 #B1A626 #26B161
split-complementary
#2631B1 #B16126 #76B126
monochromatic
#10154C #1B237F #2631B1 #3F4AD6 #717AE0

Accessibility & contrast

On white

9.74
#2631B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2631B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2631B1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2631B1#FFFFFF#000000##FFFFFF
##2631B11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2631b1;
/* rgb */ color: rgb(38, 49, 177);
/* oklch */ color: oklch(40.4% 0.198 270.0);
Tailwind
colors: {
  custom: {
    50: '#796aca',
    500: '#2631b1',
    950: '#000000',
  },
}
SCSS
$custom: #2631b1;
$custom-light: #796aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2631b1",
  "rgb": {
    "r": 38,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 235.252,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.19828,
    "h": 270
  },
  "luminance": 0.05783
}

Semantic roles & 50–950 ramp

primary
#2631B1
secondary
#C7C06B
accent
#DA40E8
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2631B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2631B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva