#252BA6#252BA6

#252BA6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.191 H 271.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#252BA6
RGBrgb(37, 43, 166)
HSLhsl(237, 64%, 40%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(77.7%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.37, 41.03, -65.96)
CIE-LCHlch(26.37, 77.68, 301.88°)
OKLaboklab(38.25% 0.0033 -0.191)
OKLCHoklch(38.25% 0.191 271)
XYZxyz(8.5074, 4.8733, 36.5613)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252BA6 #A6A025
analogous
#256CA6 #252BA6 #5F25A6
triadic
#252BA6 #A6252B #2BA625
tetradic
#252BA6 #A6256C #A6A025 #25A65F
square
#252BA6 #A6256C #A6A025 #25A65F
split-complementary
#252BA6 #A65F25 #6CA625
monochromatic
#0F1142 #1A1E74 #252BA6 #363DD2 #686EDD

Accessibility & contrast

On white

10.63
#252BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#252BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252BA6
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252BA6#FFFFFF#000000##FFFFFF
##252BA61.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252ba6;
/* rgb */ color: rgb(37, 43, 166);
/* oklch */ color: oklch(38.2% 0.191 271.0);
Tailwind
colors: {
  custom: {
    50: '#7666c2',
    500: '#252ba6',
    950: '#000000',
  },
}
SCSS
$custom: #252ba6;
$custom-light: #7666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252ba6",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 237.209,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38248,
    "c": 0.19101,
    "h": 271
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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