#2631B0#2631B0

#2631B0 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.197 H 270.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2631B0
RGBrgb(38, 49, 176)
HSLhsl(235, 64%, 42%)
HSVhsv(235, 78%, 69%)
CMYKcmyk(78.4%, 72.2%, 0%, 31%)
CIE-LABlab(28.75, 41.01, -68.04)
CIE-LCHlch(28.75, 79.44, 301.08°)
OKLaboklab(40.28% 0.0003 -0.197)
OKLCHoklch(40.28% 0.197 270.1)
XYZxyz(9.7314, 5.7422, 41.6614)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2631B0 #B0A526
analogous
#2676B0 #2631B0 #6026B0
triadic
#2631B0 #B02631 #31B026
tetradic
#2631B0 #B02676 #B0A526 #26B060
square
#2631B0 #B02676 #B0A526 #26B060
split-complementary
#2631B0 #B06026 #76B026
monochromatic
#10154B #1B237E #2631B0 #3E4AD5 #7079E0

Accessibility & contrast

On white

9.77
#2631B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2631B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2631B0
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2631B0#FFFFFF#000000##FFFFFF
##2631B01.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2631b0;
/* rgb */ color: rgb(38, 49, 176);
/* oklch */ color: oklch(40.3% 0.197 270.1);
Tailwind
colors: {
  custom: {
    50: '#796ac9',
    500: '#2631b0',
    950: '#000000',
  },
}
SCSS
$custom: #2631b0;
$custom-light: #796ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2631b0",
  "rgb": {
    "r": 38,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 235.217,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40277,
    "c": 0.19704,
    "h": 270.1
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#2631B0
secondary
#C7C06B
accent
#DA40E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2631B0

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

Preview Lab → · Contrast checker → · Palette generator →

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