#252A8F#252A8F

#252A8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.163 H 272.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#252A8F
RGBrgb(37, 42, 143)
HSLhsl(237, 59%, 35%)
HSVhsv(237, 74%, 56%)
CMYKcmyk(74.1%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.78, 33.51, -56.16)
CIE-LCHlch(23.78, 65.40, 300.83°)
OKLaboklab(35.68% 0.0071 -0.1624)
OKLCHoklch(35.68% 0.163 272.5)
XYZxyz(6.5472, 4.0318, 26.4144)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A8F #8F8A25
analogous
#255F8F #252A8F #55258F
triadic
#252A8F #8F252A #2A8F25
tetradic
#252A8F #8F255F #8F8A25 #258F55
square
#252A8F #8F255F #8F8A25 #258F55
split-complementary
#252A8F #8F5525 #5F8F25
monochromatic
#0C0D2E #181C5E #252A8F #3238C0 #5A60D4

Accessibility & contrast

On white

11.63
#252A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#252A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A8F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A8F#FFFFFF#000000##FFFFFF
##252A8F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252a8f;
/* rgb */ color: rgb(37, 42, 143);
/* oklch */ color: oklch(35.7% 0.163 272.5);
Tailwind
colors: {
  custom: {
    50: '#7164b1',
    500: '#252a8f',
    950: '#000000',
  },
}
SCSS
$custom: #252a8f;
$custom-light: #7164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#252a8f",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 237.17,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.16256,
    "h": 272.5
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#252A8F
secondary
#B9B457
accent
#DB46E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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