#252E98#252E98

#252E98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.170 H 271.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#252E98
RGBrgb(37, 46, 152)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 76%, 60%)
CMYKcmyk(75.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.60, 34.23, -58.70)
CIE-LCHlch(25.60, 67.95, 300.25°)
OKLaboklab(37.27% 0.0037 -0.1698)
OKLCHoklch(37.27% 0.17 271.2)
XYZxyz(7.4055, 4.6135, 30.1999)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E98 #988F25
analogous
#256898 #252E98 #552598
triadic
#252E98 #98252E #2E9825
tetradic
#252E98 #982568 #988F25 #259855
square
#252E98 #982568 #988F25 #259855
split-complementary
#252E98 #985525 #689825
monochromatic
#0D1036 #191F67 #252E98 #313DC9 #5F69D8

Accessibility & contrast

On white

10.92
#252E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#252E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E98
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E98#FFFFFF#000000##FFFFFF
##252E981.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252e98;
/* rgb */ color: rgb(37, 46, 152);
/* oklch */ color: oklch(37.3% 0.170 271.2);
Tailwind
colors: {
  custom: {
    50: '#7267b7',
    500: '#252e98',
    950: '#000000',
  },
}
SCSS
$custom: #252e98;
$custom-light: #7267b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252e98",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 235.304,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.16987,
    "h": 271.2
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#252E98
secondary
#BDB65C
accent
#D744E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252E98

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

Preview Lab → · Contrast checker → · Palette generator →

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