#252BA7#252BA7

#252BA7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.192 H 270.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#252BA7
RGBrgb(37, 43, 167)
HSLhsl(237, 64%, 40%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(77.8%, 74.3%, 0%, 34.5%)
CIE-LABlab(26.48, 41.37, -66.39)
CIE-LCHlch(26.48, 78.22, 301.93°)
OKLaboklab(38.36% 0.0031 -0.1922)
OKLCHoklch(38.36% 0.192 270.9)
XYZxyz(8.5995, 4.9101, 37.0463)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252BA7 #A7A125
analogous
#256CA7 #252BA7 #6025A7
triadic
#252BA7 #A7252B #2BA725
tetradic
#252BA7 #A7256C #A7A125 #25A760
square
#252BA7 #A7256C #A7A125 #25A760
split-complementary
#252BA7 #A76025 #6CA725
monochromatic
#0F1143 #1A1E75 #252BA7 #373ED3 #696EDE

Accessibility & contrast

On white

10.59
#252BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#252BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252BA7
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252BA7#FFFFFF#000000##FFFFFF
##252BA71.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #252ba7;
/* rgb */ color: rgb(37, 43, 167);
/* oklch */ color: oklch(38.4% 0.192 270.9);
Tailwind
colors: {
  custom: {
    50: '#7766c2',
    500: '#252ba7',
    950: '#000000',
  },
}
SCSS
$custom: #252ba7;
$custom-light: #7766c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252ba7",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 237.231,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.38356,
    "c": 0.19226,
    "h": 270.9
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#252BA7
secondary
#C4BF64
accent
#DF41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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