#252E8F#252E8F

#252E8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.158 H 271.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#252E8F
RGBrgb(37, 46, 143)
HSLhsl(235, 59%, 35%)
HSVhsv(235, 74%, 56%)
CMYKcmyk(74.1%, 67.8%, 0%, 43.9%)
CIE-LABlab(24.73, 30.93, -54.58)
CIE-LCHlch(24.73, 62.74, 299.54°)
OKLaboklab(36.37% 0.0046 -0.1578)
OKLCHoklch(36.37% 0.158 271.7)
XYZxyz(6.6962, 4.3298, 26.4641)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E8F #8F8625
analogous
#25638F #252E8F #51258F
triadic
#252E8F #8F252E #2E8F25
tetradic
#252E8F #8F2563 #8F8625 #258F51
square
#252E8F #8F2563 #8F8625 #258F51
split-complementary
#252E8F #8F5125 #638F25
monochromatic
#0C0F2E #181E5E #252E8F #323EC0 #5A64D4

Accessibility & contrast

On white

11.25
#252E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#252E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E8F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E8F#FFFFFF#000000##FFFFFF
##252E8F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252e8f;
/* rgb */ color: rgb(37, 46, 143);
/* oklch */ color: oklch(36.4% 0.158 271.7);
Tailwind
colors: {
  custom: {
    50: '#7067b1',
    500: '#252e8f',
    950: '#000000',
  },
}
SCSS
$custom: #252e8f;
$custom-light: #7067b1;
$custom-dark: #000000;
JSON
{
  "hex": "#252e8f",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 234.906,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3637,
    "c": 0.15787,
    "h": 271.7
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#252E8F
secondary
#B9B157
accent
#D546E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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