#2B257E#2B257E

#2B257E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.144 H 278.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2B257E
RGBrgb(43, 37, 126)
HSLhsl(244, 55%, 32%)
HSVhsv(244, 71%, 49%)
CMYKcmyk(65.9%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.37, 31.42, -49.44)
CIE-LCHlch(21.37, 58.58, 302.43°)
OKLaboklab(33.54% 0.0207 -0.1426)
OKLCHoklch(33.54% 0.144 278.2)
XYZxyz(5.4225, 3.3427, 20.0941)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B257E #787E25
analogous
#254C7E #2B257E #58257E
triadic
#2B257E #7E2B25 #257E2B
tetradic
#2B257E #7E254C #787E25 #257E58
square
#2B257E #7E254C #787E25 #257E58
split-complementary
#2B257E #7E5825 #4C7E25
monochromatic
#0B091F #1B174F #2B257E #3B33AD #5A51CC

Accessibility & contrast

On white

12.59
#2B257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B257E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B257E#FFFFFF#000000##FFFFFF
##2B257E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b257e;
/* rgb */ color: rgb(43, 37, 126);
/* oklch */ color: oklch(33.5% 0.144 278.2);
Tailwind
colors: {
  custom: {
    50: '#7060a4',
    500: '#2b257e',
    950: '#000000',
  },
}
SCSS
$custom: #2b257e;
$custom-light: #7060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b257e",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 244.045,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33541,
    "c": 0.1441,
    "h": 278.2
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#2B257E
secondary
#AAB04F
accent
#DE4AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B257E

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

Preview Lab → · Contrast checker → · Palette generator →

#2B257E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva