#252C8F#252C8F

#252C8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.160 H 272.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#252C8F
RGBrgb(37, 44, 143)
HSLhsl(236, 59%, 35%)
HSVhsv(236, 74%, 56%)
CMYKcmyk(74.1%, 69.2%, 0%, 43.9%)
CIE-LABlab(24.25, 32.23, -55.38)
CIE-LCHlch(24.25, 64.08, 300.20°)
OKLaboklab(36.02% 0.0058 -0.1601)
OKLCHoklch(36.02% 0.16 272.1)
XYZxyz(6.6199, 4.1772, 26.4387)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C8F #8F8825
analogous
#25618F #252C8F #53258F
triadic
#252C8F #8F252C #2C8F25
tetradic
#252C8F #8F2561 #8F8825 #258F53
square
#252C8F #8F2561 #8F8825 #258F53
split-complementary
#252C8F #8F5325 #618F25
monochromatic
#0C0E2E #181D5E #252C8F #323BC0 #5A62D4

Accessibility & contrast

On white

11.44
#252C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#252C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C8F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C8F#FFFFFF#000000##FFFFFF
##252C8F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252c8f;
/* rgb */ color: rgb(37, 44, 143);
/* oklch */ color: oklch(36.0% 0.160 272.1);
Tailwind
colors: {
  custom: {
    50: '#7065b1',
    500: '#252c8f',
    950: '#000000',
  },
}
SCSS
$custom: #252c8f;
$custom-light: #7065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#252c8f",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 236.038,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.16025,
    "h": 272.1
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#252C8F
secondary
#B9B357
accent
#D846E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252C8F

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

Preview Lab → · Contrast checker → · Palette generator →

#252C8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva